Looks like the Trek has slightly better components but the Specialized may have a slightly better fork.
I'd go with what feels best first and the better shop (if different) next.
http://www.specialized.com/bc/SBCBkM...keTab=techspec
http://www2.trekbikes.com/bikes/bike...d=1032600&f=18