Went through this exercise a few years ago, listened to some experienced folks on here and ended up with a DRZ.
Would look at the Suzuki DRZ400 / DRZ-4s (new), Kawasaki KLX 300 which are the companions of the Honda CRF300L.
After that you are in the 650 category with the Suzuki DR650, Honda XR650l, and Kawasaki KLR650.
The advantage of the Honda CRF300l is that it lightweight and fuel injected. The CRF300l Rally has the longest fuel range of all the bikes with a 3.4 gallon stock tank.
The DRZ, DR650, and XR650 are carbureted with minimal electronics and as the design hasn't been updated in 20+ years, so parts and accessories are cheaper than the new bikes and all known issues have been sorted out.