Aside from all the ethical concerns, I find copilot useful for getting in the ballpark, but it takes about as much effort to assess the suggested code and remove the inserted bugs. I haven't tried chatgpt.