Nikon make great cameras for sure.
I shoot with a Canon but its not because their bodies are better.
as for the sensors, Im pretty sure the 24 MP sensor in the new Nikons is SONY's sensor. It is very good.
however, the 5100 will probably be a better overall camera for you.