AWD and 4WD cars have extra mechanical parts, and as older used cars in the $5000 range that means more repairs, perhaps expensive repairs, and more maintenance costs. In your price range just get a good FWD (front wheel drive) car. Keep the size small to conserve on gas.
In the winter put “winter tires” on the car. You can make that drive easily with winter tires. In the midst of a blizzard no one should be on the road, but once the troopers open it up you’ll be as good to go as anyone else, even those driving AWD. A FWD with winter tires is as good or better than a Subaru AWD with all season tires on snowy winter roads.
Old Subaru’s are gas hogs for the size of the car. You won’t get good mpg out a $5000 used Subaru.