This chap does presentations on military logistics with a side of Aussie humour:
https://www.youtube.com/watch?v=mH5TlcMo_m4 and tackled China. In short, you're probably not correct. China has had a better military than Russia for some time. They've been building up, they have more money, more discipline, improving or better technology, an actual build up plan that makes sense, less corruption.
On the other hand you're right that if they invade Taiwan it won't just be a one sided war where they waltz in.
A big difference though is that many people suspect Russia had very bad pre-war intel, driven by corruption, that led them to believe they had a lot more support and local allies on the ground than they did. I do not think that China will make a similar mistake - they will invade when they think they can win.
The best thing the west can do is make sure they never think they can win.