This is such a gloriously uninformed opinion. The benefits to the US from being a global superpower are staggering, investing a million dollars in shutting down the Houthi attacks on merchant ships or whatever returns hundreds of millions of investment back to the US by way of trade (also, they are "spending" that money on the wages of nationals, it's not leaving the country). The Israeli Hamas is a proxy war with Iran, it's unethical and utterly immoral, but to argue that it's costing the US money is flawed.
There are real areas us spending is bad, the fact that the US spends over 17% of gdp on healthcare when other countries like Australia spend less than 11% does mean that Americans are spending too much money on healthcare (and literally getting shit for it), but it still doesn't mean that they are destroying 6% of GDP.
I'm not sure that you understand my point. Spending money on military is an economic gain for the USA, for every cent spent they gain dollars in returns. It's a "good" investment (from an amoral financial perspective, as said above, the ethics are appalling). Another country who spends less but also has a return to their economy less than they spend (like North Korea) is a bad use of taxpayer money. The amount of spend/return isn't relevant, the ratio is what matters.