The AR-15 is great for general purpose defense use especially at longer ranges. It would be a much better choice in a defense situation similar to what was seen in the Hamas attacks.
For overall defense purposes an Israeli IMI Tavor X-95 is probably the best if you have not proper experience.
Much more compact than a AR-15 so better in close quarters.
A Palmetto State AR-15 is just as good of quality as a Sig 400 at a lower price point if you go the AR route.
I see that Israelis living in Samaria have purchased hundreds of IWI Arad rifles.
It’s a kind of export alternative to the Tavor X95. The Arad was apparently more immediate available. Modular design that is versatile and compact.