True, but that's comparable only if these countries had the same responsibilities (it's like comparing people, say a soldier vs a librarian). Ireland for instance has no Air Force, and has to call on the RAF to provide air defence (as it happened when Russian Tu-95s intruded). Likewise, the rest of Europe relies entirely on NATO's firepower against Russian belligerence.
You can certainly shape a better society internally and have equitable social justice if you're free from the distraction of having to defend against external aggression.