Is the problem the use of AI in coding, or using AI in coding in a curriculum designed without that assumption? Because if AI is an effort-saver, than a curriculum that isn't designed with its use in mind will just result in the students doing less work, in which case learning less is unsurprising but not really an "AI makes you less knowledgeable" problem but an "insufficiently challenging curriculum for the actual context" problem.