I'm not a teacher, but my youngest is at a comp in a leafy suburb that is considered good and just got into the 'top 50 happiest schools in the UK'. My youngest runs with the rough kids (and is on Alternative Provision) whereas her older sister was top sets, excellent behaviour and attendance.
It's like they were at two different schools. Dd1's experience of school is nothing like Adolescence, whereas dd2's daily stories make my hair stand on end and make me want to send in a rescue party for the teachers.
Fighting, stabbing, sexual assault, police, social workers are all part of life for dd2's friends, and absolutely unheard of for dd1's friends. Dd2 seems to be surviving, though, and is liked and well supported by her teachers. She gets notably fewer punishments than her friends, despite very less than ideal behaviour, and I reckon it's down to three things.
First, she's not a bully (thank god). In fact, she takes a lot of pride in protecting kids from bullies. (I say this while touching wood, none of us can ever be certain our kids won't ever bully, given peer pressure.) Second, she has learned that going back and sincerely apologising to teachers goes a long way. And third, I make a point of backing the school - I never query their right to discipline my daughter, even if it seems a bit over the top (more commonly, it's under the top - they have the patience of saints). I'm an older mother and that's the old fashioned way!