Keep the Glock and get a second handgun. Some people are glad they had a second gun at their residence.
See if you can rent at a gun store or range or fire these models owned by other people. Make an informed decision. I have shot both and like both. Sometimes the slide stop on the Ruger did not hold the action open after the last shot was fired. I have witnessed this on more than one SR9. I think XD MAY be higher quality.