have one's cake and eat it too
idiom
variants:
or British have one's cake and eat it
Definition of have one's cake and eat it too
: to have or enjoy the good parts of something without having or dealing with the bad parts
They seem to think they can have their cake and eat it too by having excellent schools for their son without paying high taxes.