The communism capitalism dichotomy masks a lot of subtlety, including: China’s market reforms, Taiwan’s inconvenient history of being run as a military dictatorship during much of its economic development, the relative sizes of the two countries, China interfering with Taiwan’s economy, etc
I say this because Taiwan isn’t doing as hot in economic development compared to China costal cities in recent years, but much of that comes from a myriad of other reasons besides “communism is better than capitalism”.