When I invest, it's always a mix of wanting the company's product to exist in the world and wanting to make money. Making money lets you invest in future things you want to exist in the world, so it's at least a good instrumental goal. But more importantly, companies that don't make money usually don't grow. So the social impact of investing in unsuccessful companies is usually small. The goals are mostly aligned as long as the product is something you want to exist.