Evolution has the problem of path-dependence, though. Once the "don't do that" / "pay attention to that" mechanism builds up slowly over many generations, it cannot refactor in such a way that it surgically cuts out the internal feeling of pain in precisely those circumstances where, "hey, might as well give up".
It's hard to see what reproductive benefit there would be to reduced suffering when dying either so there is unlikely to be any evolutionary pressure in that direction.
This is our monthly thread for collecting these little gems and pearls of wisdom, rationality-related quotes you've seen recently, or had stored in your quotesfile for ages, and which might be handy to link to in one of our discussions.