You're swimming against the riptide. If I were teaching coding today, I'd allow, even encourage, use of AI, with some ground rules. Students using AI would have to show their work (i.e. the conversation with the machine).
The content of the prompts and in particular follow-up questions, can demonstrate competence. E.g. situations in which the student spotted that something was wrong in the generated code and made an intelligent hint to the machine to fix it.
Students should be prepared for tomorrow's world, not yesterday's.