One thing that's also concerning about the situation is now Apple really depends on China for growth so who knows what kind of additional things they can wring out of Apple if they wanted to. If they decide they want data about Chinese expats for example is Apple willing to lose access to the market that's 30% of it's sales to protect them?
Second, much of Apple's strength comes from its supply and manufacturing advantage which -- depends on China not just as a customer marketplace but that it's the only place with the skills to turn on a dime and produce the products at scale.
Third, look at VTI - Vanguard Total Stock market index. Apple is 2.83% of the entire damn thing. Microsoft next at 2.5% followed by Google, Amazon, and FB. Probably a big deal, particularly for Apple given they're the one actually building physical objects in China, to suddenly be the political football between two nations. It's probably hard enough, and maybe at some point better automation will bring manufacturing back to the US but it's also very likely China will be better in that regard for some time.
Things are more complicated than "just don't cooperate", as much as I philosophically would cheer on such behavior I don't think in the net it would end up good.
Additionally, even for Chinese consumers iPhones are likely the most secure by a lot (though intercepted cloud services are a big unknown now) -- so I'd rather they have access to the devices.
Maybe some of them pay attention to where Apple stands on things, and over the long run Chinese citizens might push local laws in a more liberal direction (though not an easy thing to do, obviously) but it's not going to happen if western companies don't participate at all.
Or, consider users all over the world. How good is it for everyone's privacy if iPhones now start at $1500 because they can't be built in China anymore. Probably would mean a lot less people on secure iPhones vs. less supported/out of date Android phones.
Is there a viable alternative? I don't mean this rhetorically — I'm actually curious. If Apple didn't comply, they wouldn't be allowed to sell their products in China. And even if Apple pulled out of China, there are enough competitors that the gap would be filled by another company that is willing to comply with the government's request. The citizens simply aren't able to (legally) obtain products that guarantee them privacy from the government.
Plus, as far as I know, Chinese citizens are aware of these sorts of requirements that the government puts on their data. So if the citizens know that Apple has complied with these requests — and if any other company would also have to comply anyway — then are they really any worse off? Apple isn't going to be able to convince the Chinese government to suddenly acknowledge that true privacy is worthwhile.
Disclaimer: I am not super knowledgeable about the issue at hand. These are just my thoughts based on what little I do know. I'd be happy to learn additional info/alternative viewpoints!