Generally Shimano's components line up like this:
Tourney < Altus < Acera < Alivio < Deore < Deore LX < Deore XT < XTR
The M191 front derailluer showing up on a couple of these bikes is probably about Altus level. With Shimano, higher numbers are better and occaissionaly they jump numbers across components groups of different years. M310 is around Acera level, I think. The EF60 is kind of a wild card because it doesn't follow their usual numbering scheme. I think it's Altus level. SRAM components aren't easy to map into this hierarchy, but I'd guess that X.5 is about Alivio or Acera quality. (I've never used X.5, so that's just a guess.)
For commuting, I'd probably prefer one with a rigid fork, but that's obviously your call.
Hydraulic brakes are almost always better than mechanical brakes, and none of the mechanical brakes here are anything special. The brakes on the Trek are probably the best of the mechanicals here.
The Deore rear derailleur on the Trek gives it a nice leg up, and that's definitely one of the most important pieces to have at a high level.
Overall, I guess I'd say the Trek has the best components, but I think the Giant is probably the best value, because its components aren't far behind the others.