That's too simplistic. Even a dictator has to balance many things - the loyalty and competency of his generals, prevailing sentiments of his troops and of society in general, and much more. Large scale dissent is problematic even to authoritarians. An extended strike by key workers, like truck drivers, could cause outright collapse and regime change, so can a military coup by disgruntled troops.
What Xi has said so far may have been misrepresented by the media, and exaggerated to rally public support for the new Cold War and for more military spending. What Xi actually said is he would not allow formal independence of Taiwan, and that he prefers closer relations/integration with Taiwan for an eventual "reunited" outcome, saying nothing of the status quo or that he would change it by force. For as long as the economic deterrence exists, I highly doubt that a war would happen over Taiwan barring one of 2 scenarios: 1)Taiwan declears formal independence by amending its Constitution, or 2) western troops, bases, or "security guarantees" are established over Taiwan
China does. Xi does not. Trump has been the bailout to Xi that China’s wolf warriors and Putin were to America after the Iraq & Afghanistan wars.