Teachers have warned AI is hampering students’ ability to learn—but most of them are using it anyway.