Communism is an ideology and never represented by any nation. What public seems to forget is that so-called communist countries are/were actually nation/government-driven socialists (not national socialism!). The people do not/did not own the factories, the machinery or anything... they just work/worked for the government, in government-owned industry. Everything is owned by the government, not the people. The people could have some rights to hold or upkeep the system but they didn't run or lead it. Therefore it's meaningless to compare communism and capitalism on a "national level".
Communism's "golden idea" is to make every individual happy. And if one is sad, then everyone are. And that said it pretty much makes it clear it can't work in reality but as an ideology it seems alright. Capitalism on the other hand gives an individual unlimited possibility to gather capital and mammon. That works fine only if you give everyone the same "starting point". Otherwise some are left completely without and outside and others seem to have a headstart and cutting edge. That breeds jealousy and widens and deepens the chasm between the rich and poor. Minimum wages, social safety nets, free healthcare etc. are the ways trying to balance capitalism and keep it in a short leash. Does it work, I don't know. Maybe.