this is false dichotomy invoked every time in discussions like these. Totalitarianism is a property of political system, not economic one. South Korea was not democracy by any stretch of imagination for quite some time.
China is totalitarian but very capitalist in most of their economy, hence their success.
Also - do not confuse socialism (as in economic system) and social democracy (political system).