If the homeowners had a shotgun it would have been over quickly. Shotguns don't miss.
The real problem is the corrupt politically-motivated DA who declined to even charge most of the perps. Only one of them got any jail time. The others are still out on our streets. Individual action can help mitigate, but it can't make up for the trend of politicians accepting and normalizing violent crime.
Sawed off shotguns have a wider pattern closer, but it's wildly random and impossible to aim with any real effectiveness.
I have both. I shoot trap. My gun on my bedside is a p226 with a flashlight that has a strobe option.