China will not invade Taiwan.
First you need a competent Navy to do that, China is NOT at this level to shut out the entire Taiwan Strait.
Second, US Navy may get involved, Taiwan host the major IC hub in the world, while China control rare earth, the reason why China sell rare earther to Taiwan or anyone is because without Taiwan or SK or US, there will be no chips. If China captured Taiwan, and capture the entire IC infrastructure, there are no reason for China to sell rare earth material to US or anyone. That would be a problem US will not afford to have. And when US Navy is involved, China will have a hard time to land in Taiwan, unlike Ukraine and Russia , there is a sea border between Taiwan and China.
And Thirdly, they will not need China to vote in support, they only need China to abstain, which is like what they did now. In both UNSC and GA.
And finally, if US and EU impose the same sanction on Russia to China, China will go bust. 70% of world trade happened related to the West. And China still largely use SWIFT. Unless China think Africa or Fail South American state are good trading partner, they can't find an alternative to EU + US, Chinese market is big, but not as big as US, Canada, EU, UK, Australia, NZ, Japan and SK combine. Actually far from it.
But all that said, Russia is still useful to China, that's why as I said, this is not going to happen as China will not let this go for now, maybe i 10 years or something when China technology is better than Russia, they may, I don't know, but not now. Which make a move to replace Russia pointless.