You hold a hard 7 (no ace counted as 11). The dealer shows a 9. Here is the mathematically correct basic-strategy play — and why.
A dealer 9 only busts about 23% of the time — most of the time they'll finish with 17 or better. Standing on hard 7 just waits to be beaten. Even though hitting busts you 0% of the time, improving your hand is the lesser risk against a strong dealer card.
Think of it this way: your 7 almost never wins as-is against a made dealer hand. The hit isn't reckless — it's the only path to a total that can actually win.