By that I mean, it must be an inherently comforting thing to think - we inherently know this and want there to be something after death, because it feels right, or more meaningful. There’s a reason basically every civilization ever has some sort of afterlife ethos.
I realize I am basically horseshoeing my way into evangelicalism but still. Maybe life was better if we believed there was something beyond this.
Short answer: Yes! Partially!
Long answer: Belief is a feature that humans have that can give you confidence both in proven outcomes and in the unknown. It stems from our prefrontal cortex survival capabilities to remember past experiences and simulate future experiences. Aka imagination. We can believe in anything we choose to.
Yes belief is psychologically comforting. Certainly a lot more than worrying about the unknown. It’s even more comforting if the belief is shared by a social group, reinforcing it to each other.
Other aspects of religion make life easier too. Rituals, traditions, stories and social ties.
Those things can help with depression! Depression is a cognitive-affective response to a body that isn’t living the way our bodies were evolved to live. Key factors of that include: Daily socialization, getting the right nutrients, sleeping well, getting enough exercise, getting enough sunlight and having strategies to keep our minds from worrying. Belief can do the last one, as can meditation, or triggering flow states by engaging in activities. Religion can also help with the socializing one.
Hope this helps!