I think both have merit, but I also think both have their problems. "Cooperation" has the problem that students won't learn what you don't make them do. Cognitively speaking, you have to really chew on a subject and apply it for it to be learned. If they don't go through this process they won't learn the fundamental skills, and then they won't even be able to check to see if their AI-generated code is wrong at the end of the day. I see the solution as being like how we handled the "Calculator Problem" in the 80s. We take away their calculators when they are learning to do sums, and then hand them back to them when the problems get large enough to be annoying. I think that, along similar lines, we'll need to have CS majors learn to code without ChatGPT before we can let them code with it.