Learning against the machine: the double edged sword of (Gen)AI in STEM education