A ride in a driverless car in San Francisco provided a titillating display of technology’s promise, but an unexpected twist made the rider worry that the encounter had turned into a mistake. Driverless cars are being developed by companies such as Cruise and Waymo, with the theory that they will be safer and more convenient than cars with human drivers. However, there has been an intense resistance to proposed expansion of robotaxis due to frequent malfunctions.