Yeah don't go with the t3i, you can view the specs here
Canon T3i vs Nikon D5100 - Our Analysis
The d5100 has better picture quality, a little bit larger sensor (1.5x instead of 1.6x), lower noise at higher iso, built in HDR and so on.
But its your choice not ours