When Google entered the Chinese search market it was competing fairly with local players: both Baidu and Google have to accept the (authoritarian) rule that they need to censor their search if they want to legally operate in China.
You could argue if the rule itself is good (I think it's not), but the point is that there are clearly stated rules that Google could choose to comply with or not.
Which "rule" did TikTok, Huawai, Wechat violate other than the fact that they are born Chinese companies?
The US could also decide that all social networks that operate in the US must be owned by American companies and subject to congressional inquiries. That would be fair enough, though that's an even more extreme version than what the Chinese government has been demanding.