This is false choice. Why did you present it?
Which is not to say that your own government shouldn't worry about national security- maybe the ban on TikTok could be more targeted, for example members of the government and military should not use it.
Anyway I was thinking more about the spying, and not so much about the influencing.