God said: "...men are, that they might have joy." (
https://abn.churchofjesuschrist.org/study/scriptures/bofm/2-... verse 25, "men/man" meaning people, of course, as below.)
And He also said: "For behold, this is my work and my glory—to bring to pass the immortality and eternal life of man." (https://abn.churchofjesuschrist.org/study/scriptures/pgp/mos... verse 39.)
Consider that: God's purpose is for our eternal benefit, and the purpose of life is joy.
I have learned for myself that the above is true, that mercy and justice are real, and our choices matter, and life, while legitimately full of hard things, does have purpose and can lead to peace, and eternal life. This mortality is not the beginning or the end, for sure.
There is so much more, and I have found (amid divorce/remarriage, long-term health issues, mistakes, sweet grandchildren now, and a variety of learning experiences) that it really, really helps, and life is good.
Edit: minor wording clarifications.