A
"pyrrhic victory" is a phrase used to describe a win or success that comes at a very high cost or with significant damages, making it feel more like a loss in the end. It means that even though you technically achieved your goal, the negative consequences or sacrifices involved outweigh the benefits gained.
Full definition