I really wish that the idea of noble goals being in competition with each other would just go away. They really aren't.
First of all, in the long term, scientific research can and will improve the lives of the poor; this has been proven time and again. No, it won't do this in the short term. Always prioritizing the short term is arguably the reason we still even HAVE poverty.
Secondly, there are a gazillion activities that do *nothing* to improve *anything* except maybe in the very shortest term, and quite a few that actively make things worse. If you feel fighting homelessness is the top-priority cause, that's great; please go knock at the doors of the defense industry, soccer, mainstream entertainment, junk food, whatever. The list is so long it isn't even funny.