Similar bikes. If you like the people at the Trek dealer better than the people at the Giant dealer or vice versa, that's a valid way to choose. A good shop will be helpful with fit, maintenance, warranty issues should they arise. Friendly helpful people are a plus.
If still undecided, pick the one with the nicest color.