Hell, like all things, was created to glorify God - https://www.4elect.com/eternal-punishment-and-the-glory-of-god/
I recommend this as a much stronger explanation and defence of the doctrine. What one says matters, but also how and why one says it. Jim has summarised the traditional position with respect to the whole counsel of God. Hell isn't simply "a" doctrine. It is interwoven with the whole biblical representation of what God is and what He does. We need to hear the voice of people like Edwards. As summarised and quoted in the paper: “Edwards concludes that considerations of God’s character not only make the existence of hell reasonable and just but also necessary. This is because a just and holy God ought to have an infinite hatred of sin if it is a thing infinitely horrible. And if he has such infinite hatred, he should also express that hatred in his actions toward sinners. Only an everlasting sentence could adequately manifest the infinite extent of God’s hatred for sin.” There is no place for Christians to tinker with this doctrine or to give way to sentimentalism.