I know the situations look superficially similar - big state rattling its sabres at smaller state, then actually going through with it - but when you dig deeper, they're not really comparable.
There's more than 100km of sea between Taiwan and China. Not China (nor anyone else) has anything close to the blue water amphibious assault fleet it would take for an effective invasion force to cross it. It would take multiple years to build such a fleet, impossible to hide, and while they built it Taiwan and her allies would assemble the world's largest anti-shipping missile arsenal. During the hours it would take to sail across, every single one of those huge, slow-moving, landing ships filled with thousands of men and megatons of materiél would be targeted with dozens, maybe hundreds, of missiles apiece. I doubt a single ship would make it even halfway.
Or forget amphibious assault, say China tries to go airborne. An even longer period unmistakably building an unprecedented heavy cargo aircraft fleet. An even longer period for Taiwan and her allies to build her already impressive air defences into an impregnable shield. Again, not a single aircraft makes it even over Taiwan's territorial waters. In fact, once war is declared and it's game on, it's a valid question if any of these large, unstealthy, slow cargo aircraft even survive long enough to be shot down over water.
The Russian experience has indeed been eye-opening, but not in the direction you assumed. Developments in missile technology have totally changed the game. Even today, the vastly superior Russian air force cannot fly over ukrainian territory. The Black Sea Fleet has been driven away - and Ukraine does not even have a navy! And even given their massive advantages in size and military strength, and the 100x easier task of invading and resupplying over land, it's far from clear that Russia will prevail.
No, you can't really compare the two. Russia could always have invaded any of their neighbours if they decided to. China literally can't invade Taiwan, not if you assume even the most basic preparation and competence of herself and her allies. The best they could do is perhaps a blockade, and hope for capitulation. There are pretty much no options for a traditional invasion that do not, with rather high confidence, lead to the fastest, most deadly, most expensive, and most total military defeat in history.
All of this in my own non-professional opinion of course, but I'm not completely uneducated on the topic. There's more - far more - information laying things out much better than I ever could, I encourage anyone overly concerned about an imminent conventional war over Taiwan to seek it out.