People who use search engines develop deeper knowledge and are more invested in what they learn than those relying on AI chatbots, a study reports.