AI is spreading in classrooms, but its impact on learning depends less on the technology than on how students use it.