I’m not a fan of MSFT but there are worse uses of the money he made from the company.
I think it’s a bit unfair to categorize all of his contributions to charity as “not charitable”.
Compare that to Elon Musk, who uses his Musk Foundation as a tax shelter, only spending from it for a private school for his children.
Because it's almost impossible to not help someone if he just throw wads of money at random. What important is how many people weren't saved because he decided to be a middle man in all of it?