Capitalism also funded the research and development of that medical care you're complaining about being too expensive. Better that it exists and is expensive rather than that medical care not existing at all.
Of course, that history played out that way is a different argument than claiming that we could only arrive at our current level of medical knowledge by that path.