most people would agree with you. but i find the extreme accessibility of firearms is what makes it inherently less interesting than melee weapons like swords. theres much less individual expression in guns the sword is a true extension of its wielder. theres a romance to melee combat that firearms simply lack, they tell a story. guns are just simply efficient theres something impersonal about them. its like the difference between handwriting a letter and carrying it through the mail to someone vs just typing up an email and sending it. theres still an appeal to that some of my favorite stories rely on that "impersonal" aspect to them. it just has doesnt have as much variety so in a direct competition between the two id pick the one with more flavors to choose from. katanagatari for example written by nisiosin is all about the philosophy of what being a sword means, stretched into the abstract essentially playing into identity. it would be hard and fundementally more shallow to do the same with firearms due to the loose connection they have to the weilder. when a weapon is an extension of the self it carries meaning in that regard when its just a tool it doesnt. even if i can still love stories about tools at times
That's because the cultural aspect behind it is one of nobility, people from the elites of the past were the ones to use swords, the warriors above the peasants, the kings, the samurai, etc. I don't really like those aspects, i think the novelty of destructiveness and the reality of how life wrenching they can be is impacting to me, and this is something i share with knives as well. Knives are the scum weapons, the everyday obscure and marginalized weapon. Even today, no one think having a knife is something considered cool, it's creepy, it's addressed to criminals, psychos, dangerous creeps and not dignified warriors, and i think that's the novelty for me, how scary they are, how simple to destroy you they are.
Also, most people might rely in guns, yes, but in media and aesthetically, the majority prefer swords, as impractical they are, because of this long carried mindset of a beautiful superior weapon made to be elegant or to impose status. That's why you will see the vast majority of fictional fantasy media involve swords as the main tool, look at all the Zeldas, most part of the animes focused on fights, fantasy movies and series, be they setting on the past or setting in modern days. No one likes to talk how most Samurais would instantly prefer using guns, bows or big spears in wars, because it isn't just as a noble story this way.