Autonomous flight is significantly easier than autonomous driving. You just fly between points in space, and there's nothing but air inbetween. The ground control handles most of collision avoidance, and if that's not available, it's easily achieved by moving 300ft/100m up or down.