Nowadays the military actually uses consumer electronics.
Don't forget computers: Turing's work relies heavily on his experiences working at Bletchley Park, ENIAC was designed to calculate artillery firing tables for the United States Army's Ballistic Research Laboratory, and the calculational needs of the Manhattan Project drove a lot of early computer development.
More importantly, the argument that "we would have gotten X anyways" can be applied to almost any technological development. Speed of development is important, however, even if all you care about is whether humans reach a certain level of development eventually (because the longer it takes to reach that level, the greater the chance that one of many potential catastrophes causes humans to die out or to lose the ability to invent the radically new technologies).