The Idiomatic
“What's good for the goose shouldn't cut off your nose to spite your face.”