Both options provide roughly the same driving range; the key distinction is fuel economy rather than range. Topping off after the pump stops may force excess fuel into the tank and potentially harm the vehicle.
[Source ↗]
Veteran drivers have good reason to avoid topping off: forcing more fuel into the tank after the pump cuts off can damage the carbon canister, and repairs may cost as much as six months of fuel.
[Source ↗]
A viral video showing heavy foam during refueling caused confusion, but fuel pumps meter actual volume, so foam does not affect the amount dispensed. The key precaution is not to continue pumping merely to reach a round number after the nozzle stops.
[Source ↗]