China is an authoritarian dictatorship. Their government does not see anything wrong with violating the rights of their citizens, so they won't be fazed if we do it too: threatening to restrict access to social media in the US is not going to get them to stop doing it in China. If we follow through with our threat, not only will we be doubling up on the problem of illegitimate political restriction on public discourse, we'll also be behaving in a way that is far more improper and unacceptable for the US than it is for China, because we do not hold constitutional republics to the same standards of rule of law and respect for individual rights that we expect from authoritarian regimes.
The Chinese government kicks out foreign social media because they want to censor a laundry list of topics and have near-direct control over discourse.
If we assume poor intent, the US wants to kick out TikTok in order to prop up the market share of US/Western-owned social media companies.
But if we assume better intent, the US wants to kick out TikTok in order to deny the Chinese government the ability to run unfettered political/social influence campaigns on US citizens. (Instead they'll have to play cat-and-mouse games on Western-owned platforms.)
Even if both intentions are there, I think this is much better justification than what the Chinese government does.
While the action may be similar, intent matters.
Or, more simply: no, intent does not matter -- you are responsible for the damage that proceeds from your purposeful actions regardless of what ideas were in your head at the time. Ends are not sufficient to justify means.
The analogy only works if the US response to banning US social media was to do something similar like banning Russian social media that had no impact on China.
As for whether the ban is legitimate or not, The Supreme Court unanimously ruled that it is. We’ve banned foreign governments from owning television stations for decades.
It's not quite correct to say that the Supreme Court ruled that the ban is legitimate. It narrowly ruled that the immediate first amendment challenge wasn't sufficient to invalidate the law under intermediate scrutiny. The only thing they were evaluating was whether the impact of the ban was biased toward any particular content, which it isn't.
They didn't rule on the overall constitutionality of the act, whether its first section amounts to a bill of attainder, whether the forced divestiture would amount to a fifth amendment taking, whether it violated the broader freedom of the press under the first amendment, or anything else. Those questions might well be evaluated later.
This presumes an assumption. I don't consider the banning as a lever for ensuring US controls Tiktok as bad behavior. America has a vested interest in snooping on and having direct control over popular mediums of communication. Giving Chinese ownership access to the methods used (like the physical devices, et al), is a security issue. It's a cold war game that seems a little sophisticated for this day and age (somehow). The lack of understanding explains a lot of these wandering conversation about tangents.
So this is the sort of statement that needs to be whacked a couple of times with a rolled-up newspaper.
The US government does not have a vested interest in doing things expressly prohibited to it by its own constitution.