Any reasonable human driver would try everything to not hit a pedestrian, regardless of right of way. The laws were written with common sense in mind, and if self-driving cars can’t emulate that then they’re not ready. Cars that only follow the letter of the law would be absurd.