Comparative Analysis of Generative AI Performance in University Programming Courses