Yeah, I specified in the first line that Germany is a socialist market economy. As are the Scandinavian countries to varying degrees. Those are not features of capitalism. Those are features of those specific countries. You could do away with market capitalism and still not throw away food, or leaving residential properties empty. Free market capitalism actually dictates that food and housing are private industries that should be controlled by private interests with little (or no) government oversight. Socialism is what says that those thing should be government regulated and that measures should be taken to ensure everyone has access to food and shelter.
The socialist market economy is not the same thing as a capitalist free market. To be clear, I also believe that a socialist market is insufficient. Simply taking half or quarter measures to ensure people don't starve to death and have homes isn't enough either. A modest step in the right direction, but not what the end goal should be.