This sounds more like Lyft's "Line" service which connects driver and passengers going the same way on regular trips. I'm not familiar with Uber's offerings though so maybe they have a similar service?
Lyft Line and UberPool match 2 passengers going roughly in the same direction, and put them in the same ride-for-hire vehicle. The driver's preferences have no bearing. :)