I really don't agree with calling the D5300 a mid-range camera, it's 2013-2014 tech. Like I mentioned somewhere else I do understand the price comparison but it's not a mid-range camera anymore, it's very outdated.
That said, I don’t have the experience of phones being "good enough", and even my Sony RX100 (edit: was "RX1", my bad) first gen which is quite old is out-performing 99% of the smartphone market in picture quality on a good screen, if you exclude HDR.