D7000.
Proper manual controls and handling. The D5200 has one command dial, which means to change aperture, you have to press and hold a button while turning the dial, and as the dial is on the back of the camera, this is impossible with one hand, so the whole thing turns into a massive pain in the ass. The D7000 has proper dual command dials - aperture under your index finger, and shutter speed under your thumb. You don't even need to take your eye from the camera to shoot manually.
Forget about the D5200's higher res... the D7000's 16MP will be plenty for the vast majority of people. If you don't actually print your work then 16MP is massive overkill actually.
Ideally.... a D7100 would be the logical choice if budget permits... but between those two, the D7000 would be my choice over the overly plastic, poor ergonomically designed D5200.