There can be a mix though.
I mentioned in a sibling comment that I used ChatGPT to generate homework. I tried pretty hard to get it to generate questions that I thought would be fun and interesting, instead of kind of boring cookie-cutter stuff that was in every textbook (e.g. shapes and animals to represent classes and inheritance and interfaces...boring!). I was very happy with the results (my favorite was getting the students to implement a rough version of the Pokemon battle system in Java).
I was a bit of a weird professor since I had like 11 years of industry experience at the time, and had been a college dropout not long before I was a professor (I did have my bachelors and was pursuing a doctorate while teaching, don't worry), and I do think that I was able to put a unique spin on things and explain stuff from a more industrial perspective, but I honestly feel like AI helped me with that, instead of making the stuff boring by regurgitating the textbook.