This is a misconception that shows up now and then.
In the 1940s through the 1970s, the military really did have a broad tech edge over the civilian market. The USAF was once the largest buyer of transistors. In the 1980s, the civilian electronics market became much larger and passed the military market. This upset some military people. Articles about "premature VHSIC integration" appeared, complaining that civilian electronics was ahead of military devices.
There were a lot of minicomputers in DoD systems for years after everybody else was using smaller and cheaper microprocessors. Some stuff was even older. The USAF's satellite control facility and NORAD at Cheyenne Mountain had the same consoles NASA used for 1960s Apollo well into the late 1980s.
We had a very early Sun workstation, one with an auxiliary color monitor. Someone put a world map on the screen, and overlaid it with the current positions of USAF satellites and ground stations,
as a demo. A visiting USAF general saw this, and demanded that the entire system be immediately shipped to the USAF's satellite control facility. They were still using big manual plotting boards, updated by people reading printouts, to track what was coming into range of each ground station. So the USAF got the Sun system and it was immediately replaced by a new one.
There was some cool stuff. I got to see a system in the 1980s where you could look at stored photos and do pan, zoom, and rotate. The UI was a zoom lever, a pan joystick, and a rotate knob. Took a half rack of custom electronics. They were building something like Google Earth for satellite photos. Now, of course, everybody has that capability.
There were niches where DoD tried to stay ahead. NSA put much effort and money into cryogenic computing. They had gigahertz electronics in the 1960s. There were several generations of NSA cryogenic technology, but each time, the commercial market pulled ahead with a cheaper and faster technology.[1]
If you read DARPA solicitations, you can see where DoD is trying to get ahead. Non-GPS precision navigation is a big thing, for example.
This was the typical pattern by 1990. DoD would be ahead in some very narrow niche for which there was little commercial market, but overall, behind commercial technology. I've been out of that world for many years, but from what I hear, it's still pretty much like that in the land of classified tanks.
[1] https://spectrum.ieee.org/will-the-nsa-finally-build-its-sup...