GM has hired Sterling Anderson, a former Tesla executive and cofounder of autonomous vehicle company Aurora Innovation, as its chief product officer.