have it both ways
Achieve two mutually exclusive objectives, as in Bill wants to have it both ways—to enjoy Christmas at home and to travel with his friends. The related have it all means “to get everything one wants,” as in It's too bad we can't have it all—the wisdom of experience and the fresh enthusiasm of youth. [Early 1900s]
Words nearby have it both ways
have had it,
have in,
have in common,
have in one's hands,
have it,
have it both ways,
have it coming,
have it in for,
have it in one,
have it made,
have it out