This statement is a prime example of a fallacy known as false dichotomy. https://en.wikipedia.org/wiki/False_dilemma
“I think that the benefit for the community that infrastructure investment provides is so much greater than rebuilding the telescope, to the point that if I had absolute control of the limited gov budget I’d allocate all money to infrastructure.”
That’s debatable, but it doesn’t seem like a logical fallacy.