have it both ways
📖 generalMeaning
To try to benefit from two conflicting situations or choices.
Literal Meaning
To have both options or outcomes.
Example
“You can't have it both ways; you need to choose between your career and your family.”