The jockeying between Apple and Nvidia reflects a debate about the future of AI that has preoccupied investors this summer.