Shotgun.
The fact that this question is being asked makes me wonder about peoples judgement, no disrespect.
Firing a rifle in a direction where you can clearly see houses is idiotic.
know your target and whats behind it.
Also, regarding response of bullets disintegrating when hitting the ground are simply false. A primary consideration in safe range design and range use (from the NRA) is ground ricochets rising above the backstop. My club had our range evaulated by an NRA range inspector and one of the findings was the use of handguns on the rifle range at short distances was demonstrably and repeatedly yielding hits high in the berm. The same finding was true of shooting targets with high power rifles set in low stands.
In our case, the berm is like 85 feet high given the range is cut out of a hill, but it still unsafe practice and lead to range rule changes to try and eliminate ground ricochets.