Which is nothing to do with the fact that the choice is not between a moon mission and funding healthcare and education. Those are not the set of available choices.
Retrospectively, any choice made can be made to look binary, and in theory, the choice cited could have been made. We might have improved health care and education instead of going to the moon, if those in charge had agreed to the need, and had the power to redirect the energy, and chosen that particular tradeoff. It's also possible we could have done both, at the expense of something else. Life is full of these choices and consequences, from political divisions that never go away, to "if only I'd known" regrets. Anyway, it's handy at times. If we can send a man to the moon, why can't we....
Which, conveniently or inconveniently, depending a little I imagine on how busy your morning is, leads to a sort of philosophical diversion, based on the moon/social welfare issue.
I sort of agree with acbytesla, that there are some things we should attend to before we attend to others. Some are glaringly obvious, some a matter of perspective or point of view. Certainly right now, our nation is a blinding example of wrong priorities, frivolous choices and lost opportunities. At the same time, because most of the choices we see are not truly binary, often not mutually exclusive, and often not ours to make, we need, I think, to guard against what I've always thought of as a sort of "moral triage" when we assess the acts of others. We make our choices and others make theirs. Whatever you decide to dedicate your time or money or conscience to, someone somewhere can find and justify something else you should have done instead. Whatever enterprise or charity or cause you decide to pursue, someone can say you would have done better to feed the poor. If you put your effort toward feeding the poor, someone can find an argument that you'd have gotten more bang for your buck doing something else. Every choice we make is alloyed, every choice a little bit wrong, the more so in hindsight when unforeseen consquences are revealed. Even if there's some truth there we have to temper an argument that can be deployed for everything from gold-encrusted ballrooms to animal welfare to art itself. The world is a terrible and contradictory place where bluebirds sing and lions eat antelopes alive. The poor we will always have with us, and in the meantime we should do the best we can, but we also can, perhaps, be forgiven for not all being Diogenes naked in his barrel.