Suppose there are some swords (not man made, but abundant enough to arm an army), that grant their users a magical abilities such as: extremely heightened reaction/increased perception of time and injury regeneration, short range teleportation, high speed, area of attacks, teleportation into a void/dimension where they can control some laws of physics/basic reality to fight an opponent in a 1v1/ 1vX against whatever their opponent may be, basic natural elemental control etc. (They get a single ability, not a combo),
The swords are rooted in some basics of science and isn't just a delete button for their wielder to use against their opponent, and have an incredibly high durability. The swords in nature are alien/not of the earth, so they cannot be manufactured by humans, incredibly improper use can result in their destruction.
There is no other magic in this society/world. I am trying to strike a balance where the swords are powerful enough to deal w/ extremely dangerous threats found on both the earth and beyond, but not strong in that they can just bust a continent or planet open because of magic, or have a group of people armed w/ swords simply control the entire world because of the sword's power. In the same vein, I also cannot have the firearms SO powerful that there is absolutely NO reason to use such magical swords in a near future setting.
Why would a near future society/humanity still use guns mainly in their military against both humans and other entities, when these swords grant users such power?
Edit: Some idea of how these swords work:
The swords need to be held in order to be activated, further more they can't just be used in the real world wherever if that makes sense. What ends up happening is that they essentially create a large barrier/ container in an area where they are able to use magic. In lower level barriers/containers people can exit and enter the barrier/container as they please, higher order containers are a bit more tricky. For visualization purposes imagine that a certain radius around the user is teleported into a different subspace where the laws of physics are slightly altered along w/ some magic to allow the swords to function (the laws of physics cant be manipulated such that it makes chemical reactions inert so that guns dont work, or gravity reversed etc.). The laws are changed in order to allow just the sword to function in its true capacity, everything else is remained unchanged. This means that only the sword users and the sword itself are augmented via magic.