I wouldn't buy a .22 rifle with home defense as a priority. But I don't think that's the point, here. "Use what you have."
I'd assume a semi-auto. If not a 10/22, then a tube magazine type.
I have read, but don't know first-hand, that multiple rapid hits have a cumulative effect brought about by the rapidity. The example was the Skorpion .32. Pipsqueak cartridge, but deadly because of the rate of fire of 1,200 rounds per minute.
So, if a .22 rifle is used, method is the important thing: I'd think a half-dozen very rapid
hits to the center of mass. Since recoil is trivial, there should be a very tight group.
So, go practice.