AI programming tools like copilot are meant to assist devs in the implementation. It's still up to the dev what to do about the code generated by AI.
I use chatgpt sometimes to help me with coding, but I don't rely on it 100%. I still have to understand the provided code and sometimes tweak it to accommodate to what I want the code to do.