Google on Tuesday unveiled its next generation of Pixel phones, providing the maker of Android software a head start on the next iPhone in the race to bring more artificial-intelligence services to devices that have become people’s constant companions.