A major difference is that Ukraine can be resupplied from Poland, Slovakia, Moldova.
Once hostilities start, there is no resupply of Taiwan.
I think Taiwan has inventory and it also has a far more capable military than Ukraine