More to the point, if your military is only good when enemies attack you the way you want them to, you don't have a good military.
Nonsense. Every military is built to counter certain types of enemies. Nations that win predict correctly, nations that lose predict incorrectly. History is littered with examples.
Pretty sure anyone who fights the US military finds out pretty fast it’s a good military.
It isn’t perfect. It has flaws. War is hard to get right in every dimension.
Nowadays it's about efficiency and cost-effectiveness. Sure, 99% of the time a Shahed-136 might "lose" against a Patriot, but a Patriot missile costs 200x what a Shahed does.
Laser and EWar approaches are going to be more successful long-term as the price per "shot" is dramatically less, but deployments are slow.