By the time you decide which gun to use, the thieves will have hauled off your Helen Reddy collection and your gravity boots.I let Glock handle it.
I leave legos scattered on the porch.
I use Frontpoint Security for my alarm system. If that doesn't make them pick a different house there is a South African Mastiff and a Great Dane waiting on them inside. While they are tangled up with them I have my own tools of various lethality to finish the job if need be. Also complete coverage of the exterior of the home with a set of IP cameras.
I've many a burglar say the best thing to have is a dog, even a small noisy one. Unless you are very wealthy and you home if of particular importance to break into the whole idea is to make your neighbors a more inviting target that you. I have worries due to my day job so cover my bases as much as I can.