Like so many things in Elon Musk's orbit, a lot of it may come down to AI.