It's always going to be a balance. Capitalism drives innovation and investment but making money at the expense of everything else isn't good for individuals or the environment. Socialism might be better for the environment or individuals in theory but it's not good for investment or innovation.
Like with most things in life being a purist is damaging, you need to be pragmatic and let capitalism do what it's good at and temper it with socialism when it's counterproductive.