Tiger salamanders, when facing overpopulation in crowded communities, will have a few larva spontaneously develop larger frames, bigger jaws and hyperaggressive, cannibalistic demeanors. The "cannibal morphs" will attempt to devour those in the community most distantly related first, which clears some room and confers a selective advantage on its closest kin.
https://academic.oup.com/beheco/article/5/2/225/212146
Probably risky to read too much into that. We aren't tiger salamanders, after all, and they don't, far as I can tell, debate and refine their own ethics in any meaningful way.
Still, it's terrifying to consider that tribalism and even genocide might have an evolutionary tailwind.
I'm not an evolutionary fatalist... but it would suggest we have a lot of work to do.
Also : the notion of "the tape getting erased" mentioned above reminds me strongly of William Burroughs' idea that ideas, memories, and other cultural / personal info-artifacts are dependent on [paraphrasing here] their being written to memetic tapes. which are liable to erasure, editing, degradation etc etc as social and psychological processes work.
It's worse than that. As ever more powerful weaponry gets concentrated in to ever fewer hands, without a corresponding increase in wisdom to forestall their use, there are likely to be very dire consequences for a humanity that seems prone to something like autoimmune reactions on societal levels (ie. humanity seen as an organism attacking itself).
I would be surprised if civilization as we know it lasted another couple of hundred years.
As Einstein once said, "I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones."