But equally it's really helpful to be able to ask ChatGPT or whatever for a different explanation when you get stuck - but that is probably better done at home when studying the homework. It stops you getting frustrated and helps keep you making progress and in the 'flow state'.
I guess a big problem for schools now will be how to get them to use AI to help them learn rather than simply getting it do to their homework so they can go and play video games or whatever. I know if I'd had it as a kid I would've been tempted to do the latter.