have it both ways
US /hæv ɪt boʊθ weɪz/
UK /hæv ɪt boʊθ weɪz/

1.
to enjoy two different things that are usually only possible separately
:
•
You can't have it both ways; either you work hard or you relax, but not both at the same time.
•
She wants to live in the city and also enjoy the peace of the countryside. She can't have it both ways.