It really depends what you're using it for. The trek entry level bikes are meant for XC and adventure. The Specialized Hardrocks are more of an all round bike that can be used for street and dirt jumping if setup correctly. I would say Specialized makes better entry level bikes, even though I'm a trekkie.
Where do you live, and what kind of riding are you doing?