What dictionary has to say about

cut off one's nose to spite one's face