The irony is that to get good quality useable output from ChatGPT (asking the right prompts, nudging it appropriately), addressing all the formatting issues and so forth, is a non-trivial amount of work, and the student probably could just have written the essay himself