Socialism is the workers collectively owning the means of production, everything else is just details. (Well, the anti-heirarchy bit is important too, especially to keep the means from falling into something that isn't just capitalism with extra steps, but complicated)
It is innately opposed to capitalism as a result. What it isn't innately opposed to is a market economy.