Copilot helps as it's directly embedded within vs code. So as you code you get running suggestions based on your code base. Chat gpt may serve a more general purpose of creating a quick boiler plate function that you can then edit.