And conversely Taiwan is not Afghanistan but an integral part of China. Something that you as a Chinese person knows intimately. No Chinese leaders Communist or not will be able to allow a defacfo independence of Taiwan for the same flipping reason that U.S. could not and didn't allow the secession of Southern states from the Union hence the U.S. Civil War. The same reason Catalonia isn't an independent state from Spain.
The talk of nuclear is not a one way street as if to suggest that the U.S. can put a scare to China from exercising military moves against Taiwan due to a nuclear blackmail and or naively believing that if such drastic actions were to be taken by the U.S. that a guaranteed nuclear retaliation of greater proportion of death and destruction against America wouldn't commenced or that it could be prevented from happening is at the height of extreme hubris.
No country and especially not China should be subjected to or be dictated by any other country on what it can and can't do with respect to it's national sovereignity. America was afforded and accorded all the freedom and leeway to conduct her domestic and foreign policy business unimpeded from any external powers and every leaders of that country have expressed it so from Monroe to Biden.
Afghanistan is not Taiwan, not to mention Japan or South Korea. A hegemon's job is save up resources to fight and defeat the biggest challenger, not to waste them fighting much smaller and negligible powers.