I would think it would be more like, giving your adversary control of a very powerful tool of indoctrination, or keeping it for yourself. Especially when it also involves giving up a long-term revenue stream. Because you know Trump isn't going to pay fair market value for it, right?
Losing tiktok, would be a lose / lose for China. No amount up front, would be enough to cover the long-term benefits of keeping it.