Request to help choose the best donating scenario

Hi There! I have a dear friend, who happens to also be a talented investor. Over the past few months, he got really very interested in how EA works, and he is asking me more and more difficult questions. This one came in today morning, and I wanted to ask EA community to help me solve it. :) Here it goes:

“Let’s have two scenarios. We have a person X.
A) X pays 10 000 euros right now in 2022.
B) X has a good chance to pay 25 000 in N years.
Which one would be preferable?

Let’s say that X invests thousands of euros every month to a business or stock market and X is relatively confident in his investments. Even if there is uncertainty we can assume in this specific case that the odds are on his side (doesn’t mean that he can’t fail). Then after N, say 5-10 years he donates his investments.”

If you need to simplify the case for the sake of the equation to determine if an instant donation is better than a delayed but bigger one—please do.

Thank you in advance for any help!