Like any manufacturer in some cases Trek will meet your needs and sometimes Giant, Jamis, Specialized or someone else will. But in the end it all comes down to components and wheels and service.
Still there is a reason so many suggest getting a bike from a LBS rather than a department or Big Box Store. But just looking at who and where your bike is made might let you know that the biggest difference between bikes in components.
http://allanti.com/page.cfm?PageID=328