Capitalism and Communism aren't a binary thing but instead something on a spectrum. Both ends of the spectrum are terrible and inhumane. The point is finding a balance.
The US is too capitalist and the UDSSR was too communist.
I think many modern european countries strike a good middle ground.