Some of them simply don’t generalize, like creating new homework assignments from scratch each semester.
As much as I'm loathe to suggest using AI in CS, that's actually something an LLM might be able to help with --- generating tons of pseudorandom variations on a theme.
I think making assignments completely for practice, and having 100% of the grade be the final exam, where there is zero computer use and pure brain use, outputting on pen-and-paper, will work. Anyone who tries to cheat will only cheat themselves and have the results of that exam reflect their actual understanding.