If you go with an XD-45, you will not have a rust problem, as the XD-45 has a melonite finish, which is similar to Glock's tennifer finish.
If you can't decide between a Glock and the XD, go to a shop and just hold, or, better yet, rent and shoot them both. I bet I know which one you'll like...