The standard of a defensive caliber is that it needs to be capable of immediately halting an attacker
with the kinds of shots a scared defendant can pull off[0]. Not killing them immediately or eventually, but halting the attack. Plenty of gun shot wounds are capable of killing eventually even if they’re not immediately disabling, and it does you no good if your assailant eventually bleeds to death after they’ve finished stabbing you.
The issue is that halting an attack occurs because of hydrostatic shock, which is a product of a bullets velocity and expansion. 22lr is capable of causing blood loss, which can eventually lead to death, but it does not deliver enough energy to reliable render an attacker incapable of continuing the fight if they’re sufficiently motivated. Assuming that the assailant isn’t immediately scared off by the brandishing or noise of a firearm, which is often the case, 22lr requires extremely good shot placement and volume to reliably end a fight, which makes it a poor choice all around.
Generally for modern firearms the minimum is either 380acp or 9mm, depending on who you ask. The only advantage that 380 has is that some 380 guns are easier to manipulate for those with weak or small hands, otherwise 9mm is generally the winner here in terms of firearm choices, ammunition availability, and terminal ballistics.
For comparison, here are the levels of energy for 3 cartridges. Energy isn’t the be all end all of terminal ballistics, bullet construction[1] and expansion matters, but it’s illustrative. The ranges quoted are necessary due to different bullet weights and pressure loading.
22lr: 130-200fpe
380ACP: 210-330fpe
9mm: 355-500fpe
0 - Any caliber is capable of killing and/or disabling with luck or extremely good shot placement, this is why even 22lr cannot be treated as a toy. But people shooting defensively do not make record shots generally, and you have to accommodate for the fear and adrenaline of a defensive encounter.
1 - The availability of quality defensive ammunition is another big factor. Defensive ammunition has gotten really good over the past half century, and most of these improvements have completely bypassed 22lr.