If there was no government to shut down the nonprofit, the company wouldn’t have spent billions to develop the cure in the first place. Why would you do that, if anyone could just copy your work and profit for themselves?
And also this one: https://mises.org/library/advancing-pharmaceutical-and-medic...
It's in no one's interest to have people dying instead of buying and selling services.
Don't forget that the charities don't have the 11 billion now because the money goes elsewhere (to pharma corps), but people might give it to the charity if the corps didnt't exist.
The same development could possibly cost less, that's another thing to consider.
Overall my point is that the greed of pharma companies is not because of capitalism because it wouldn't be possible in pure capitalism. It's enabled by the government.