Hardship and discomfort can be a blessing when it leads to repentance

2 Corinthians 7:9-11

I now rejoice, not that you were grieved, but that you were grieved to repentance. For you were grieved in a godly way, that you might suffer loss by us in nothing. For godly sorrow produces repentance to salvation, which brings no regret. But the sorrow of the world produces death. For behold, this same thing, that you were grieved in a godly way, what earnest care it worked in you. Yes, what defense, indignation, fear, longing, zeal, and vengeance! In everything you demonstrated yourselves to be pure in the matter.

from Repentance topic