OP specified only two legged miscreants and no
"large dangerous animals" for a reason; if bears were a possibility then 10mm would dominate the poll.
How this works:
Consensus says: 9mm and 45 are both fine if facing armed human attackers trying to kill you.
(Some would inexplicably even content themself with a 32)
What if a bear is trying to kill me? Oh, consensus says then 10mm is better.
Ugh, wouldn't a 10mm be better for stopping humans too? No, cause reasons (they vary).
Are armed humans not "large dangerous animals"? Well, it depends on the area, small town versus a big city, day or night, threat assessment, "I feel"....
Bears trying to kill you and you want to stop them ASAP with a pistol = 10mm
Armed humans trying to kill you and you want to stop them ASAP = anticipated threat, area, statistics, James Bond, used in Europe 75 years ago, "I feel"