In my own situation with a home intruder, the young guy was mentally ill, although it wasn't obvious at the time.
It sounds like you did not have your doors locked. That simple step would have been better than pepper spray, a taser, or a firearm.
In my case, if I found someone inside my house, that means they would have kicked down a locked door or broken through a window, and then fought off 250 lbs of dogs (I have three, two that are very very big). Those are my "less lethal" layers of defense. I highly doubt that an intruder could successfully claim "I accidently entered the wrong house unknowingly". Just by being inside my home, and intruder has already breached several layers of less lethal defense. That doesn't mean I'd start shooting at him, but I would not be trying to hold him at bay with a can of pepper spray either. He would be held at bay with something "more decisive". His next move, and the results, would be his decision.
I can imagine how people who don't lock their doors or set up layers of security could find themselves in a tight spot with an intruder though. I also see that some people may decide to set up only less lethal defenses and leave it at that. While I personally may not agree with the choice to lay down and die as a last resort, that's not my choice to make for others. I have several layers of less lethal defenses against intruders. In my case these are all passive, requiring no action from me other than setting them up initially. Once I am forced by an intruder from passive to active defense, I want all chances for winning the confrontation in MY hands, not HIS.
I feel strongly about being responsible for your own safety, but my intent is not to demean others with different opinions. I apologize in advance if that's the way my comments have come off.