The problem is both. Your missing the fact that the driver needed to act because the autopilot program failed. The pedestrian was walking - not running as had been reported - across the road and autopilot should have avoided the collision, even though it was dark, unlike human eyes, autopilot...