"Handgun Bullet" and "Flintlock Pistol Ball" are two different animals.
Swords -also- destroy organs that they hit, and impart significant kinetic force to the target over a larger area through a VASTLY greater mass.
Google images of 'sword wounds'. While horrific, few are directly fatal. Killing someone outright in a singe sword blow is rare (barring defenseless people with exposed necks etc), you usually have to literally hack away at them for some time to kill them, or wait for them to bleed out after the fact.
Thrusts to the chest and abdomen (which pierce organs) are often fatal. Thrusts to the head and limbs are less so. Hacking even less so (hacks to the neck and limbs is often enough to incapacitate someone).
Edged weapons (while lethal) generally have very low stopping power.
However:
The research found the Brown Bess musket to be a lethal weapon at the ranges at which enemy was commonly engaged, so long as it was accurate enough to hit the target. A single shot fired at 150 yards could penetrate at least two soldiers, even if bone were hit.
https://www.tandfonline.com/doi/abs/10.1163/157407808X382737?journalCode=yjca20
A single musket ball to the chest, abdomen or head OTOH almost certainly is fatal, as would be a single shot from a modern handgun or high powered (.223 and above) supersonic rifle round.
A lot more people can get hit by a sword and survive, than can get shot by a handgun, musket or rifle and say the same thing.
Im not going to get into terminal ballistics with you, but this is the damage your average 5.56mm intermediate cartridge does to the human body:
You're basically left with a football sized area of mush in your body.
That 5.56mm bullet is travelling at supersonic speeds of around 1000m per second, and delivering around 1300 ft lbs of energy on target, or just short of 2000 J.
Musket rounds were on average .75 caliber (or around 19mm, so 4 times the size of our 5.56mm round) and were capable of delivering nearly 2000 ft lbs of energy on the target. The speed of the bullets was half as much as a modern intermediate cartridge at between 450–540 m/s, however due to the size, the kinetic energy on target was around 3000–4000 J.
The musket could penetrate 4mm of steel at 100m, something a sword couldn't dream of doing, and the wound cavity was almost always fatal, turning whatever organ it hit, plus every neighboring organ to jelly.