That does seem to be the trend these days. See: AI proliferation, cryptocurrency.
These days? The space race was 50 years ago.
The first time around, the space race was expensive, but not entirely unnecessary. There were real strategic advantages at play.