Back to topic--there's no way an XD compares to a Glock in quality. I also think grip safeties are really dumb and find the XD's very un-ergonomic. Glocks, if you shoot them well or are just learning to shoot anyhow, are the best choice in a handgun. (Again, me, I like SIG.)
But a shotgun is even cheaper, easier to use, and probably more effective for what you're talking about. If you're worried about the patterning or penetration of the shotgun, you shouldn't be shooting from that angle with ANY gun in a home-defense situation. Rule 4 of firearms--be aware of your target, backstop, and beyond. If you launch it, you own it.
But a shotgun is even cheaper, easier to use, and probably more effective for what you're talking about. If you're worried about the patterning or penetration of the shotgun, you shouldn't be shooting from that angle with ANY gun in a home-defense situation. Rule 4 of firearms--be aware of your target, backstop, and beyond. If you launch it, you own it.