Cabs already stream ads once the meter starts in many cities, so that's not new, nor is fare sharing - New York has had it for decades.
I'm sure any driverless cab would have the ability to ask to get out, but technically one might argue you're kidnapping someone as soon as you take them off the route they requested for any reason, if if there's an "opt-out"... at the level of an individual cab ride and human driver it's moot, but if you're operating a fleet of thousands of cabs, doing that over millions of rides, it could easily turn into a class-action suit.
Besides, it would not necessarily even have to redirect you past a different location, it could just stream an advert to the speakers in the car.
It could also be possible that some routes would be subsidized, like you could enter the location of one restaurant and a rival restaurant could offer to cover your fare if you went to them instead.
Another aspect is that you would need an easy way to split the fare amongst multiple passengers, I almost never take a taxi if I am traveling alone.