suggests that
recognizing that an unfortunate situation might have been even worse can sometimes offer perspective and consolation.
Imagine a case where in nay situation, regardless of how bad or undesirable is, it always could have been worse.; then “Nothing so bad but might have been worse” fits well.