Are car autopilots the equivalent of airplane autopilots?

A fairly basic autopilot with an altitude hold function allows a pilot to focus elsewhere safely for long stretches, especially if en route under IFR rules, with ATC providing traffic separation. Even so, that isn’t an invitation to watch a Harry Potter movie, as the Tesla driver is alleged to have been doing.