You're making a lot of assumptions there bud - I'm just trying to point out that "have children to cure loneliness" seems as bad of advice as "have children to save the marriage".
I agree that having kids to cure loneliness is “doing it for the wrong reason”. But I don’t think it’s controversial that having kids does actually cure loneliness.
Because if it works, great, but if it fails, you're now in a failing marriage and you've brought kids into that misery. Children are not something with which to gamble to try and make your own life better.