"Better" in this instance is a fairly indistinct term. Many things come into play when choosing a home defense weapon. Long guns in tight spaces can be unwieldy, for instance. I will not go into this subject in this thread, as it is off topic. However, I would urge anyone who wishes to "go armed" to do lots of research and then practice (dry fire and range time) to the point of proficiency.
Illumination, which is on topic, is crucial to home defense. No one wants to inadvertently shoot their teenager who is sneaking back into the house at 2am or the neighbor kid doing something stupid. If you choose to not have a dedicated weapon light then the need for training with a light and weapon is even more important. Mastering the Rogers, Harries or FBI technique is critical to being able to defend yourself and your household.