Depending on whether you prefer upright bars or drop bars, look at a decent hybrid or cyclocross/touring bike. Other factors to consider are tire/fender clearance, and eyes for fenders or a rack.
There are so many bikes out there with all manor of variation and choices, that you shouldn't have a problem finding something that fits the bill.
FWIW over my 50 years riding, I've ridden top end race bikes on roads and trails that would barely qualify as goat paths, and ridden off road bikes on the road at speeds and distances comparable to what I use my dedicated road bike for. IME fit and position (and the engine) matter more than the specific bike. Tire selection is also important, for instance I commute on the same mtn bike I use for mtn biking, but have spare wheels to switch back and forth between ones with smooth tires for the road, and aggressive tires for off road and/or snow. (could just change tires, but changing wheels is more convenient).
__________________
FB
Chain-L site
An ounce of diagnosis is worth a pound of cure.
Just because I'm tired of arguing, doesn't mean you're right.
“One accurate measurement is worth a thousand expert opinions” - Adm Grace Murray Hopper - USN
WARNING, I'm from New York. Thin skinned people should maintain safe distance.