> An autopilot maintains heading, and that's all.
Aircraft autopilots can follow a flight plan, maintain an altitude or rate of climb/descent, do an instrument approach, and (using ADS-B) perform an automated avoidance maneuver when another aircraft is too close.