I would say the D90 because the 5100 does not have the flash commander mode and cannot control off-camera Nikon flashes.
On the other hand, the 5100 might have a slight advantage with low light and high iso noise.
But I'd go with the D90 if it was me. Other opinions will vary so eventually you'll have to trust your instinct.
good luck.