There is not much difference between the two. The processor of the D5300 is newer than that of the 5200, and then there are more wifi than that of the D5200. If the money is good, I suggest you buy the D5300 directly
To buy the D5200 or D5300, it is better to add a few more money to buy the mid-range computer D7000, D7100 or D7200. It is in the mid-range and is better than the entry-level computer in all aspects. The D7000 is fast out of the market and has a high cost performance ratio. The price is not much higher than the D5200 or D5300