And as far as dirt roads go, if the self driving cars can't make it through well defined, paved roads what are the odds they are going to accurately navigate some dirt road?
Autonomous cars aren't a viable tech until the roads are reengineered with rails built in. It's just way too big of a technical problem to solve with computers alone.
Right now the death rate of autonomous cars is far higher than human drivers and it is never going to catch up given that it hasn't advanced technologically recently.
If our rail network was as potholed and badly maintained as our roads, people would die in train accidents every day.
Rails are great for intensive, carefully manicured routes. They are not a substitute for roads.
Then there are the cases of engineers who are distracted and what not, but I'd imagine we're talking autonomous so that (hopefully) wouldn't be an issue.
The beauty of cars vs rails is that cars can go more than just a set in stone angle or path defined by a rail. Cars can go in and out of parking lots and dirt roads. Rails would be more automated, yes, but not as versatile.