I swear we need to retire the term ‘Capitalism’ entirely because it seems like it’s impossible to discuss its flaws without someone just assuming it’s a statement in favour of resurrecting Stalin. This has nothing to do with communists.
Electricity can be produced in many different ways - it’s just that some are more profitable than others.
Capitalism also creates an entire web of incentive structures that make it hard to develop more sustainable alternatives - e.g car industry creating ‘lock-in’, as described in this paper. I’m sure a similar paper could be written about some Soviet bloc state 60 years ago, but that’s irrelevant. This is a problem of Capitalism and the Soviet bloc doesn’t exist anymore. Just cause ‘Stalin bad’ doesn’t mean ‘Capitalism can do no harm ever’.