I agree with Sprayandpray.
My answer takes you down a different road.
you need to figure out what you intend to do with the camera, and the answer : taking pictures is not the correct answer.
If you know the answer to the above question , then you will know which camera to buy.
Manufacturers and sales people try to sell you cameras on specs, however they should be bought on your present and projected needs.
That is why we have cameras from D3100 to D3, because buying a unit with features you do not understand and will not use, or as some people do, buy a camera and put it in point and shoot mode and leave it there, then it is a waste of money.
Get a photographer friend and spend some time with them, learn about the features of cameras and what you can achieve with these features, and at the end of the time spent with them, you will know, which camera is correct for you.
Remember a D5100 is not a point and shoot camera, it is a serious learing tool that takes you along a lifelong journey, and only you can answer if you want to take those steps or stay in the P&S land.