If ChatGPT can 'write' well enough that a student can take it as is and go 'yeah good enough' then they would've already passed your class without learning anything, because you're not teaching anything worth learning. All they've done is saved time.