You might be a victim of the Goomba Fallacy[0] where you're seeing two opposing opinions from two distinct groups of people, but since those are expressed on the same site, it seems as if 'the site' is contradicting itself.
500 shares of company A is worth 100% of the market cap of company A.
500 shares of company B is also worth 100% of the market cap of company B.
So if you have 5 shares of each, you'll have 1% of the market cap of each, even if one of those companies finds the cure for cancer or turns out to be a money furnace.
That reminds me of the "Strangler Fig" pattern where you replace a service by first sending the requests to both the old and new implementation so you can compare their outputs. Then only when you're confident the new service functions as expected do you actually retire the old service.
As far as I understand, at best you can subtract your donations from your income, so you won't have to pay income taxes on those donations. Even if you can subtract the donation directly from your taxes, you still lose the same amount of money.
Either way the philanthropist loses at least as much money as the taxes he would've paid without the donations.
[0] https://knowyourmeme.com/editorials/guides/what-is-the-goomb...