Geographically Taiwan is easier to isolate. It is also a much smaller and denser country. Ukraine has a direct border with a NATO country that has been very useful as a safe staging area. Taiwan would be completely reliant on sea and air for resupply.
As a Taiwanese American, I do believe my cousins would put up a valiant fight. However it is hard to imagine it lasting very long without foreign boots on the ground. A conflict of any length in Taiwan would result in a huge loss of life.