My advice: Ride them both (and a few more) and buy the one that feels the best.
It is amazing how different similar looking bikes can feel. I had a Specialized Sirrus for a while. It was light, quick, and fun, but the geometry was a bit too tight and stiff for me. The ride was too harsh for my needs. I wanted a bit more comfort (like my old Centurian touring bike). I started looking at the Trek 7.3FX The LBS had a 2006 21.5" model built up. I took it for a ride and didn't like it much. Bad fit and feel After they finished building up the 2007 21.5" model I took it for a spin. Great ride. Good fit. I bought it. Same model, different year. There were some subtle changes in geometry that made a significant difference in the feel of the ride and the fit to my body.
When I was looking at mountain bikes I must have ridden over a dozen different models. The Treks had a more nimble feel to me. More fun. Most of the other bikes just felt heavy, clumsy or stiff. Your mileage of course may vary.
IMHO, within a certain price range the components will be the same or fairly comparable. It is the geometry that will differentiate the bicycles. Only you know what feels good under your butt. Also, don't be afraid to swap out a few parts to get the fit and feel. I had taller stems put on both my Trek 7.3FX and my Trek 4500 at the time of purchase. No charge, just a parts swap. I don't like most stock bike seats, so I toss them quickly and get something that fits me better.
Bottom line, ride a bunch of bikes. When you find the one that feels right, fine tune it to fit you properly.
Good luck, TR