I can’t put my hands on the reference source but I did read once of a favorable comparison between .22 magnum and 9mm, barrel length and all else being equal
I’m sure a comparison could be made, but it’s probably pretty tortured.
The new high performance 9mm bullets have a good record compared to the old ball ammo.
And frontal area of the bullet makes a difference too, that’s my my preferred revolver round is a .44 Special SWC.