I think that the solution is automated rail transit. Being in a dedicated place with lower likelihood of encountering people removes nearl every issue that self-driving cars have. Being automated means that 24/7 schedules are possible. If there are enough trains and high enough saturation, need for cars and even taxis is removed.