Requiring a plagiarism detection feature is a symptom of a shitty instructor, syllabus, and/or academic institution.
Adversarial teaching environments are a symptom, not the problem. And the fundamental issues don't have a clear solution, though it is clear that the situation is far from optimal.