But I rather have gps digital map to off-trail out then a compass. I've had to do it before.
Depends on the topography. Here in the Ozarks a topo map and compass are as good or better than a GPS if you know how to use them.
I can read a topo and compare that to the distant ridges or course of a hollow or creek and pinpoint myself almost immediately and they don't need batteries.
I have been in some pancake flat spots though with no distinctive landmarks where that wouldn't work so good. Either way I'd bring both and spare batteries.