Apple can go against prevalent business practices, other companies etc, but they can’t go against the law. And they shouldn’t even try! Do you really want a corporation having enough power to go against the law? If you live in a country where someone (including the government) can legally force you to forego your privacy, there is literally nothing you can do - except try and get the laws changed - something you may not have the power to do - even in a democracy.
The difference between Apple and Google is that Google is doing things which may not be desirable despite no law compelling them to. If the US government (or any other government) manages to pass a law which says that Apple must turn over all the user data they have - or that they must collect certain types of data, there is nothing Apple can do other than comply - or shut shop. The sole reason other Apple can resist other countries’ governments is because no one has passed laws similar to China yet. There are people who resist the passage of such laws - something that is not the case with China. Apple (or any corporation) is not going to war with a nation state over the rights of the said nation state.