In secret, an unemployed man with poor job prospects uses his savings to buy a large term life insurance policy, and designates a charity as the beneficiary. Two years after the policy is purchased, it will pay out in the event of suicide. The man waits the required two years, and then kills himself, much to the dismay of his surviving relatives. The charity receives the money and saves the lives of many people who would otherwise have died.
Are the actions of this man admirable or shameful?
One would hope that in the two years between signing up for the insurance policy and offing himself he took the time to figure out how to make the donation suitably indirect and manage appearances. All it would take is one person you can trust.
I don't know if "trust" is a sufficiently boolean property for this. One would need an executor trustworthy to
Handle large amounts of money with no oversight
Deal with the legal system
Maintain absolute discretion on the subject, basically forever
Deal with the knowledge that a close, trusting friend is going to commit suicide for unconventional reasons
A good lawyer fits some of those criteria, but not all; and is difficult for the unemployed to retain. Frankly, I think that most people who could inspire that kind of loyalty in others could do more good alive.