Though it’s a military that’s also NASA. Which in no way stops it from being the military.Not to bring this age-old stupid, pointless debate into the middle of another stupid, pointless debate, but Starfleet is the officially sanctioned defense force of a sovereign government. It's a military, by definition. It's not a paramilitary. It's not a "hybrid service" (whatever TF that is). It's a military. Hard stop.
And thus @BillJ argument is correct.