When you consider selection, it winds up the same. Say in china if you follow the pollution laws, your competitors will undercut you and they won't suffer any consequences because rule of law is weak. So if you follow the rules, you go out of business, you don't exist anymore, leaving just polluting companies around.
Likewise, Apple can play China's game, or just cease to exist in china where someone else will merely take their place. The situation is exactly the same, grandma is getting mugged no matter what.
But...even worse than that though, the company has to compete with those Chinese players outside of china as well, and leaving Chinese market share out, that can make it harder....they could disappear entirely from the rest of the world as well (assuming Chinese players are competent outside of china, which admittedly hasn't been shown yet). So at the end of the day, of competition is working perfectly, those that refuse to play in a market can simply be selected out completely. Leaving only players who are willing to mug grandma...not because all the companies are evil, but because the non evil companies died off.
It isn't simple. In the long run, a political solution will be needed, we can't leave morality up to private companies that have to compete or die.