A kids/YA book I would have read in the 90s about a kid who travels to a world where people don't sleep. They must have been largely human other than that though, since the protagonist was able to pass as a local. Their technology level was contemporary as well.
Kids who are suspected of sleeping are picked on and beaten up. I think the protagonist attempts to befriend someone who was beaten up for sleeping but claims they were just daydreaming or something.
The protagonist finds their teacher in some kind of zoo or museum exhibit, gawked at by the public. There is a vending machine where people can purchase snacks to feed the human, all junk food of course. The teacher just looks sad and the protagonist feels sorry for him, because the vending machine doesn't have M&Ms, which is the only candy the teacher would eat because it wouldn't melt in his pocket. So the teacher's got chocolate stains on his pocket now. Something like that.