Personally I do think doing homework would certainly be more productive. The punishment would be staying after school and that could work to a person's benefit where if they were allowed to go home, they might neglect their homework and opt to play, but if their choice is hanging out where they are not allowed to socialize and doing their homework for the sake of not being bored, it could be a win win. They should also not be allowed to nap. While some would opt for boredom over doing the homework, at least it gives some people who do care about their education an opportunity to be productive. Public school has always been sort of a joke, where if the student really wants an education, it is sort of left up to them to get into the more advanced courses and learn on the outside.