system
Given the following post, respond as if you're commenting on Reddit:
human
[Marvel/MCU] Why do so many 'advanced' civilizations use melee weaponry?

**[SPOILER WARNING]: MINOR spoilers for Captain Marvel**

In our world, armies have gone from using swords, spears, and shields to using guns and firearms as the technology has improved. Nowadays, no wars are fought with melee weapons.

However, there's a lot of advanced civilizations that use melee and ranged weapons equally, some even using blades over guns. My question is why? What benefit does using swords and spears give that an advanced, sometimes even space-faring civilization would want?

For a few examples of civilizations I'm talking about:

- Wakanda: Their vibranium weapons sometimes shoot lasers, but their armies are mostly kitted out with swords and spears

- Asgard: The Asgardian army fights with mostly swords and shields, again sometimes fitted with ranged capabilities (Odin's spear) but never any guns. The Warriors Three and Lady Sif both also fight with swords, axes, and a flail.

- Kree: Ronan used a hammer, some of Captain Marvel's old Starforce teammates used swords and knives, and many of the Kree in Agent's of SHIELD's dystopian alternate future use blades, even calling modern firearms "primitive weaponry"

I'm mostly avoiding pointing at singular characters who prefer melee to range, like Thor, Gamora, Drax, Bobbi Morse, Loki, Black Widow, I'd even put Hawkeye in here (a bow is ranged but still not as advanced as a gun - at least tech wise). When it's a single character, it could just come down to personal preference, skill, or the fact that their weapon is much more powerful than an average version. It's different than a civilization arming their entire army with swords.

So, why do many advanced civilizations prefer to use melee weaponry for their armies instead of an army based on ranged firearms?
gpt
The implication is that after a further advance in arms and armor, ranged weapons again become mostly obsolete and a better kind of melee weapon again becomes more powerful.  

Using Asgard as an example, they do have ranged weapons but you can see that they don't get much done against most anyone.  Your average warrior can hit harder than any bullet can, so they don't use bullets, they use swords that incorporate really advance materials and tech.  

Wakanda seems to be a bit of a different situation, but it shows.  They do have quite a few variants on ranged weapons in their arsenal, including cool hover-fighters and whatnot.  That said, their primary defensive posture is one of security through secrecy.  Because of that their standing armies are largely ceremonial and meant for defending against the other tribes, which again everybody has vibranium armor, so guns are of limited use.