If you willingly take no profit (Leaving market) over less profit (Losing control over AppStore in the market) then you can be almost sure that shareholders are going to sue you and I would bet shareholders would win such lawsuit. So no Apple doesn't have this choice.