This is an easy to solve problem: oral exams / interview exams.
I know it sounds like a farce. Because it is. But it might also be a proper solution.
All this nannyware of various sorts is just more evidence, proof even, of how few of those students should even be there.
This isn't just essays, AI will happily output any known algorithm you ask for in a few seconds. CS coursework can be almost entirely automated in many cases