Alphabet Inc. chief executive Sundar Pichai has bet big on artificial intelligence as central to the company's future, investing billions of dollars to embed the technology in the conglomerate's disparate divisions. Now, it is one of his trickiest management challenges.