And it is a weird kind of "force" they face. Apple, over the course of decades, has willingly made a huge investment in a state with an authoritarian government in order to pursue their goals. They did this knowing full-well that China's suppression apparatus would take great interest in Apple's pocket bugs, and that China shows little hesitation about using their leverage. Apple knew they would be asked to make these sorts of concessions. There's no chance they didn't think this over.
So when people say they "Apple doesn't have a choice", what they mean is Apple made the choice some time back.
This is the part you're wrong about: Apple, like any public corporation with effectively-zero internal controlling-share ownership, is constitutionally incapable of doing things that would make its share price drop; and is constitutionally compelled to do things that make its share price rise. Any CEO who attempts to do anything "against" the share price is fired by the board (which consists of external shareholders, not idealists) and replaced by a CEO who will serve the share-price god.
"Things that make Apple's share price rise" include "entering the Chinese market", "committing to the Chinese market", and "doing whatever customization to their products is required to stay in the Chinese market."
Which is all to say: Apple never made a choice. Free-market capitalism made this choice. If individual Apple employees don't like "the market" being their true boss, they're free to leave and work instead for a private company, or an internally majority-owned company, or a non-profit, or a B Corp. But Apple itself — the aggregate emergent behavior of the organizational entity — is not free to do anything, any more than a train is free to drive off of its rails.
Yes, not doing business in China means less revenue, and unhappy shareholders. This is why capitalism sucks: it more or less requires companies do unethical things, when not doing those things means much less money.
Behind the curtain there are humans making decisions. They may be hedge funds, investors, board members, etc. There are humans that deliberately want to do business with China and know exactly what is happening with those workers. It wasn’t capitalism that outsourced iPhone production to a sweat shop, it was a group of real people who are morally bankrupt.