The majority of commonly "accepted" self-defense calibers are all going to exceed safe limits. Choose what you can shoot best, over what caliber is going to damage your hearing least.
Don't forget to consider the "back-stop" in case you miss, which is more common than not in a high stress situation (in real life). Consider not only your neighbors in adjacent houses, but more importantly. any family members/loved ones in any adjacent rooms. Know your home well, and practice with a "dry-run". familiarizing yourself with different angles and cover spots for "clearing" your home as frequently as possible/prudent.
I am ex-Army Officer (currently in Reserves) with moderate experience with weapons, and for home defense I have multiple (5) handguns stored in 3 Gun-Vault quick access safes in my bedroom. These range from a Colt Govt Model 1911 to a Walther .22LR (for accuracy) in a hostage scenario.
A home invasion will be an extremely intense situation. The larger caliber is not always going to be the best answer for most people. Go with what you can handle with the most accuracy, combined with stopping power. If you're accurate, 22LR head shot works better than a .44 Magnum that you might miss with.