Chat GPT can write entire code snippets which developers can copy and run on their machines. Google can answer developer-related queries by pointing to some existing blogs or stack overflow questions. But chat GPT is itself writing code.