NEVER PUSH A PAWN IN DOUBT... you cant undo a pawn move.
And what makes you think you can undo a piece move? A bad move is a bad move... it doesn't matter if it's a piece or a pawn
There are often plenty of piece moves that can buy you time and don't actively harm you, and you can always move the piece to a better square later (assuming you haven't blundered it away), or move it back to where it was if you want. Every pawn move is forever, because pawns can't move backwards. After you've fatally weakened your kingside by kicking pieces away or making idle pawn moves , there is nothing you can do to undo the damage you've done.
NEVER PUSH A PAWN IN DOUBT... you cant undo a pawn move.
And what makes you think you can undo a piece move? A bad move is a bad move... it doesn't matter if it's a piece or a pawn