That is not even remotely how people in the real world think; most people who are even consciously trying to think about long-term consequences struggle to prioritize safety measures while they're being actively discouraged against prioritizing them.
Consider that if people were capable of internalizing that hitting a pedestrian was more costly than being 5 minutes late to work -- and were capable of consistently applying that cost-benefit analysis in their everyday life, we wouldn't need laws like speed limits in the first place.
The human brain is not wired to think about risk in that way. It is wired to respond to regular consistent punishments for braking by braking less often. It is wired to respond to irregular novel punishments for rare events like hitting a pedestrian by ignoring that risk.