Capitalism isn’t just about “things need funding” the point of the meme is that capitalists determine what gets funding. A socialist state might put economic force behind other scientific endeavors, ones driven by capital are intended to create profit. The profit motive drives innovation instead of the pure ideological pursuit of truth or any other driver.
This is a fair point. It becomes a matter of which questions we’re asking as a society, though. Of course we are not at a stage where capital is the only driving force for science (thank goodness for public funding) but it’s not far fetched that we might be, and a world where questions are only asked in the context of profit generation (and unsatisfying answers are suppressed) is a dystopian world indeed.
It’s fair to say capitalism is having a negative impact on science (e.g. journals) but it’s not as dire as what’s suggested