We spend less than $10B per year on going back to the moon and trying to inhabit Mars.
So, continuing to also work on other things is both rational and morally sound.
Progress in one area unlocks new possibilities in other areas. E.g. abundant near-free energy would make eliminating poverty a more tractable political problem than it has proven to be.
This is an impossible way to get to a useful conclusion. Provide stats if you're going to make a claim like "the world is bad"
Is the goal is to create an earthly utopia with minimum suffering and maximum happiness? Is it aggressive progress so that we can't be wiped out by a random cosmic event? Or should we be eschewing all of that and living harmoniously with nature and dying spiritually content when our time is up?
There is also the argument that if we had focused on solving poverty 150 years ago instead of prioritizing rapid industrialization and economic growth more people would be in poverty today. A 50 year period of scarcity would completely erase all progress we have made towards lifting people out of poverty, regardless of how equitably we distributed the scarce goods.