I have many weapons that would accommodate a bayonet.
Though the only one that I actually have a bayonet for is the old SKS, and that's only because it came on the gun and it's all factory original and correct. I have no desire to remove it.
And between stabbing at someone with a pointy knife tip, you get one chance to hit what you're aiming at as you thrust it toward (and hopefully into) part of their vitals if they can't deflect or flinch or dodge it.
The weapon is much more effective being swung around and used as a club than stabbing someone with it. At least swinging that thing around, you could break bones and inflict a lot of pain or kill them with blunt force trauma.
As an example, have someone stand still while you stab at them in the chest with a tv remote control, and the second part of the experiment, ask them to stand still as you walk into the room swinging a broom at them while chasing them around the room.
Which is more effective?
Fighting styles as a whole have changed a lot where hand to hand fighting in very large numbers and close proximity is increasingly unusual.
Opposing forces don't line up and march straight into each other anymore like they did in the Revolutionary and Civil War.
But if you're down to no ammo and using it as a club or bayonet, you better hope your enemy is in the same bad predicament, because otherwise you're number is probably up.