Thanks for the good laugh. China for example wasn't invaded and it's pulling itself out of poverty by recognizing trade is the answer.
But dismal gave a good example of Cuba.
China completely bought into the US system. It opened up it's population to be freely exploited.
What China shows is that there is no conflict with modern capitalism and totalitarian government.
Cuba was attacked vigorously from day one. Terrorism and a blockade.
Lets take a look at China since you seem to feel they took a bad route.
1) To me the most telling thing is the height of the people. When I was first there I could see over the crowds. My eyes were above the top of the hair of everyone around me. This was the effect of growing up under the communist system. However, it was nearly 20 years since the restrictions were eased, the ones coming of age had grown up under the semi market economy--and soon my line of vision started being blocked. I'm still normally the tallest person on the street but by now I see through crowds no better in China than in America. Changes like that in a single generation are not due to evolution, they are due to nutrition. People were eating better.
2) When my MIL first needed a helper they were readily available at about $2/day + room and board. By the time she died the basic price was around $10/day and few wanted a job that put them on call 24/7. That wasn't very many years. The low wage workers had a tremendous boost to their standard of living.
3) The level of renovation in Shanghai is incredible. (I'm singling it out because of my knowledge of it, I have no reason to think it's not representative.) We were trying to find an address on a street my wife had been down ~10,000 times. Absolutely nothing was familiar except for a few business names. Total replacement in the 15 years since she had been there last. There are still pockets that haven't been replaced but they're fewer and farther between every year.