>>69919368a machete has a thick, not super sharp blade, a sturdy handle and the center of gravity is around the middle, within the blade length. It's meant to cut brush and jungle using chopping motions.
a bayonet is mostly for stabbing enemies and is obviously not balanced for any kind of precise motions
with swords it depends on the specific type but generally speaking they try to have the center of gravity around the pommel for more precise control and have a relatively thin blade as it's meant to balance stabbing, slashing and chopping.