An aircraft has fewer and simpler variables to deal with than ground vehicle.
If a ground vehicle runs a red light, it’s potentially fatal error. There are more of these for a car than there are for an airplane.
You don’t have to write automation to avoid hitting trees in a plane. An airplane just needs terrain data and a few algorithms.
There are a few enough airplanes and airplane manufacturers that you could regulate a specific algorithm for traffic avoidance.