The XD is a good choice. I had two, including the XD9SC. So that you're not setting yourself up for disappointment, I will say that finding a new XD9SC under $400 is not going to happen. You'll be very, very lucky to find even a used one for that. I sold both of mine within the past two weeks and both went for over $400 used.
Also, do a forum search on gun shows. Don't assume you're going to get a good deal at one.