AI and learning retention: Does ChatGPT help or hurt?