there are two types of charity:
Direct and not direct.
Direct charity is when you directly give money to person in need.
Indirect charity is when you give to trusted charity organization, and that organization gives to person in need.
these come with their benefits and drawbacks.
Benefit of direct charity is that you are 100% certain where money went, and also people learn about you quickly so you look good, which is good for those who donate to charity for purely selfish reasons.
Indirect charity probably wont have your name mentioned, and charity organizations are often scams. However, there is a certain benefit in being anonymous. If people learn about you as charitable person, they will start coming to you a lot for help, and that is extremely annoying. Indirect anonymous charity mostly prevents that.
But you must check the charity organization really good. Like, it must be top charity organization in your country and not some randomly selected organization.
Since I wont reproduce, it is logical for me to leave all my wealth to charity, after enjoying a reasonably long life.
Of course, I must be careful who to leave land to, because it cant be someone who will cut trees planted on it, but I understand that is difficult to control. I hate the idea that all my work with planting trees can be easily destroyed by whoever gets the land after me.