That's a total non sequitur. Ukraine wasn't a NATO member so why would NATO fight for it? (Several NATO members have given substantial aid to Ukraine.) In terms of a potential conflict between mainland China and Taiwan, the only NATO member with the capacity to do anything is the USA. The other players will be Japan, South Korea, Vietnam, and Australia so the outcome will largely depend on whether they decide to get involved.