For stuff I actually have to code, ChatGPT or Copilot is good enough. I just get it to kick out a basic set of code and then modify it to my needs. Unfortunately it can be a challenge, but with client privacy, it's better to err on the side of caution.
That said, I often try to validate any code by running it through a different AI to make sure it actually makes sense. AI hallucinations just makes things difficult.