Steven Spielberg nearly directed Harry Potter but left Hogwarts behind to finish Stanley Kubrick’s dream project, A.I.