It is more important. We spend > $2T per year fighting climate change. We spend > $10T per year on social welfare programs.
We spend less than $10B per year on going back to the moon and trying to inhabit Mars.
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"