I was playing around [0] with gpt and and most of what I started is by chatgpt, however with many fixes. The code it generated looked mostly ok, however it needed many fixes as it was off a lot, especially on api use, promises etc. Because this is all throw-away by definition (and only for localhost use!) and only to see/test/play with the differences with production stuff, it is pretty impressive how fast you can do things.
I have the feeling though that copilot makes less mistakes and learns my style better; chatgpt keeps mixing styles even in the same session. You can prime the prompt and then it works a bit better in that case, I found.
[0] https://github.com/tluyben/chatgpt-sqlite-server