AI can be a helpful tool to help students learn, but many are taking shortcuts and learning less, according to a study.