I had the following position in a local league game.
I was White against a very strong player, and I had been a pawn down since the opening.
I saw a way to force a draw, and took it. In the process, I swapped off my good pieces for my opponent’s bad pieces.
I played 1. Bxa6 Rxa6 2. Rxa6 bxa6 3. h5 and we agreed a draw . because the position is totally blocked.
Rather than exchanging my good pieces for the poor pieces on a6 and a7, I should have played g5.
This doesn’t win outright, but it gives me a big advantage.
The moral is that if you have good pieces, don’t get rid of them without reason.