China avoided this problem by ensuring that never happened in the first place.
Then China requires the company's operations in China to be more than 50% owned by China. The TikTok thing is very much "what's good for the goose", but it's also the US acting more like China the authoritarian country.
I couldn’t figure out if that is actually true
But the distinction is somewhat redundant with their government structure anyway. If they want to force you to do something there, how much does it matter if they say "you have to because we have majority control of this company" or "you have to because we have a one-party system and control the law"?
If the US government e.g. orders a US company to censor criticism of the US, the company can sue them and plausibly win. If you can't do the same in China, you don't control that company, they do.