The problem is, the actors with money don't spend it with the intent to maximize the benefit to society as a whole. They spend it 'selfishly', to maximize their personal interests. There's nothing wrong with that, it's how capitalism works. But if everyone spent their money to benefit society as whole, then there would be an extremely strong correlation between how much a job pays and how much it 'matters'.
I feel that in the long run the markets work just fine and does act to benefit society since people are generally ethical. But it doesn't act to 'maximize' the benefit to society. I mean why did it take warfare for us to take space exploration seriously? And why did the internet start as a military network?
I think capitalism is a pretty decent system. But I wish we did a better job of pushing research and innovation for their own sake. Not as a reactive measure to beat the competition or get an upper-hand militarily. I think nearsightedness on what's best 'now' and 'for ourselves', leads to a lot of work that feels like it doesn't matter.