You cannot have your cake and eat it.

鱼与熊掌不可兼得。