Capitalism ends up being better because it usuallytries to have a separation of powers between those who control production resources and those who control policy and politics. In real-world Socialism and Communism, they are the same, allowing for greed to have a much harder impact.
Sadly, that separation falls apart far too often.