To start, I would calculate the expected value of all scenarios.
Scenario 1: Get a guaranteed $1 million.
The expected value would be: $1 \cdot 1\,000\,000$ dollars, or just a million dollars.
Scenario 2: Tails = $0$, Heads = $2\,000\,000$
The expected value here would be: $\frac 12 \cdot 0 + \frac 12 \cdot 2\,000\,000$, or still one million dollars, since a fair coin has the probability of landing on heads as $\frac 12$ and the probability of landing on tails as $\frac 12$.
Scenario 3: Tails = $0$, Heads = $5\,000\,000$
The expected value is $\frac 12 \cdot 0 + \frac 12 \cdot 5\,000\,000$, or $2\,500\,000$ dollars.
Scenario 4: Tails = $0$, Heads = $10\,000\,000$
The expected value is $\frac 12 \cdot 0 + \frac 12 \cdot 10\,000\,000$, or 5 million dollars.
But since I would much rather be guaranteed money rather than use probability, I would prefer the first scenario (the guaranteed $1 million), hence the answer to your question.