It would help if you actually state the country in question, so we can properly judge your statement's applicability.
In the USA laws vary by state -- in California it is typically almost always incumbent on the driver to avoid pedestrians.
I've also traveled to countries like Jordan where the driver is always at fault, and fatally striking a pedestrian would have lifelong consequences for a driver.