Google raced to create a rival to ChatGPT, facing challenges and controversies along the way. Despite setbacks, analysts are optimistic about Alphabet's position in the AI race.