If it's a choice between the two, get the Ranger. The two are priced about the same, but the Ranger's are better built. (note: Triton may seem cheaper, but that's because some "options" offered by Triton come standard in Rangers. Comparibly equipped, some Tritons can actually cost more than Rangers)
They're fairly comparible in fishability and layout. It's what you don't see that matters, and this is where the Ranger Legend gets it's reputation.
In addition, the digital touch switches on the control panel of a Ranger are more durable and dependable than the switches on the Triton. The 6-gauge wiring throughout a Ranger is, again, something you don't see but makes a quality difference.
It's not to say Triton's are bad, they're not. You're essentially comparing Cadillac and Lexus. So you can't go "wrong" with either. But I give the edge to Ranger because they simply build a better and stronger boat from a construction and quality perspective.
On the other hand, if speed is your need, then get the Triton. Overall, they are faster than Rangers due to the shallow hull design. You give up storage space and some ride comfort as a result though.
Something else to consider: the trailer. Ranger has made huge improvements in their trailers lately, including a "Rhino Lining" like coating to prevent chips and rusting. In addition, Ranger is the only boat company to manufacture their own trailers, including all the components. Triton makes some of their trailer parts and outsources the rest. The difference is, again, what you don't see, but has a major impact in the quality of the finished product.
Oh, and no, I am not sponsored by Ranger.