It's disturbing how common it is for people's default assumption to be that it's the pedestrian/person on the bike/scooter/what have you 's fault that they got hit by a car. Rarely the driver's fault, and NEVER the urban designer's fault.
Most crashes are fundamentally caused by designs that encourage them.
We know drivers speed, we know they text while driving, we know signs and even enforcement doesn't work etc etc. The ONLY conclusion is it's the built environment that must disallow crashes and people being hit by cars from being possible in the first place.
Narrower, more winding streets, cobblestone, speed humps and other calming surfaces, more vegetation, raised crosswalks, dedicated and physically segregated (by bollards, concrete blocks etc) spaces for pedestrians, people on bikes etc etc.