Github Copilot markets itself as an AI pair programmer. I think that's the right approach. ChatGPT is like a digital assistant. Neither need to give you the full and correct answer, but they can help get you started in the right direction like getting over writer's block.