"Lord of the Flies" was written as a response to the more Utopian "The Coral Island", so both were set on a Pacific island. In this respect the Tongan castaways were an obvious parallel. However, LotF is also allegorical, and uses the situation of the boys to explore more general human traits.
The co-operation exhibited by the Tongans might be a celebrated exception. My personal experience of school life tended more towards the LotF end of the spectrum.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!