Nose?

«Cut off your nose to spite your face.»

Meaning to do something that is meant to harm someone else but that also harms the person who does it.

Merriam-Webster