While I agree with you broadly that Starfleet is pretty military, I want to push back on your assertions that the only difference is intent and that they follow all the rules and regs. Notably, the proportion of time/energy/resources Starfleet devotes to nonmilitary activities is much higher than you’d see from a typical military. And, unlike a real-world military, Starfleet officers can resign, seemingly whenever they want, like a civilian police force or something. On the whole, Trek is more military scifi than, say, Guardians of the Galaxy, but less than, say, the Honorverse. And a lot of what makes star trek (or anything) interesting is the ways in which it differs from the pack.
While I agree with you broadly that Starfleet is pretty military, I want to push back on your assertions that the only difference is intent and that they follow all the rules and regs. Notably, the proportion of time/energy/resources Starfleet devotes to nonmilitary activities is much higher than you’d see from a typical military. And, unlike a real-world military, Starfleet officers can resign, seemingly whenever they want, like a civilian police force or something. On the whole, Trek is more military scifi than, say, Guardians of the Galaxy, but less than, say, the Honorverse. And a lot of what makes star trek (or anything) interesting is the ways in which it differs from the pack.