https://skybrary.aero/articles/autopilotflight-director-apfd...
Granted it's muuuuch easier in planes because 1) they're already being routed to avoid each other by humans when the route is setup, 2) they continually announce their position with a high degree of accuracy, 3) generally speaking only two planes will be that close to each other at a time in the air so deconflicting doesn't cause huge ripple effects and 4) the sky is really big but also gives them a 3d dimension to play with where streets are 2 dimensional.