Soviet Union was able to produce something that worked, but it was all below price-quality curve. I.e. you could buy same quality product from Western corporations for less money; or you could buy better quality product for same money. Western corporations also had better selection.
So only buyers were in communist bloc, and what USSR end up exporting is oil and gas.
And that'll happen nine times out of ten, since socialist economies are not optimal.
Libertarian socialists sometimes call states like the USSR state capitalist, because economic activity is still dictated by a top-down hierarchy allocating capital and exploiting workers.
Optimal is not the word you want to use, by the way. Not even free markets are optimal, that's why economists talk about 'market failures'.
So the key difference between the USSR and the Liberal states in opposition to it is the notion of property. Under the USSR, all property is state property and under the Liberal states, property is the bourgeois notion of property.