In the OT when God was king over Israel and He ordered a war Israel was always successful, no exceptions.
News Flash - we are not in the old testament. Weren't you aware of that???
And there were times when OT Israel fell away from the Lord and ended up in defeat because they departed from walking with the Lord and would have been victorious had they not backslid
We are living in a time grace where the Lord allows men to go their own way even if they means they end up in hell, so comparing the OT with the NT is something done in ignorance of the differences between the 2 different covenants and how the Lord deals with man under each.
Besides, you fail to see that modern day Israel is very prosperous and they are still coming out on top when they get attacked and they fight back against their enemies.
You failed to notice that after the terrorist attack and massacre in southern Israel on October 7, 2023 carried out by Hamas, Israel's enemies have paid a far higher price for their actions than they inflicted upon Israel
And going forward you will see the same theme in that Israel will continue to stand and be victorious over her enemies because the Lord is the One causing them to be victorious through various avenues of assistance not to mention Israel's military is quite capable because of the Lord's blessing.