I am not that sure anymore. The Russo-Ukrainian war shattered a lot of my illusions with regard to rationality of leaders. A country with a very bad demographics started a war by deploying clearly insufficient forces (200 000 soldiers are nothing when compared to the size of Ukraine; Germans deployed 12x as more soldiers in 1941 to conquer Ukrainian SSR) and the result is an enormous fuck-up and unendong slaughter of young population which, with current TFRs, will never be replaced.
If Putin can make such a bad judgment, Xi can as well. It is not as if Xi tolerates more dissent/negative feedback to his rule than his Russian counterpart.