Socialism is a set of collectivist policies desired or in force while a capitalist society is being consumed (i.e., distribution of goods and services by society's collective dictates).
Capitalism "solves the problem" of production by producing what returns profit (in a market of demands and supplies). Once profit is stamped out, production is unguided except by "society" commanding it (i.e., a command "economy"). Even if this guidance were democratic, it would still be subject to the tyranny of the majority (the bulk of the collective).