One X or Galaxy S3?

I'm wanting to get my first Android phone. I want to get either the HTC One X or the Samsung Galaxy S3 here very soon. Which one should I get? Also, will either of these phones be able to upgrade to JellyBean when it's released?