It depends on the situation. If climbing and seriously might need to walk out at dark I carry a very nice (yet inexpensive) Everyready headlamp with 4 settings. It has proven to be adequate in every situation. However in summer just backpacking I carry a cheap lightweight LED that attaches to my baseball cap and uses just 2 button batteries. In addition a little LED tent light that takes just one AAA battery. One is a backup for the other and both very light and I actually could walk out with either in an emergency.

I have, on two occasions, tested a couple of different head lamps and flashlights by hiking in late in the evening and purposely walking out after dark on a local little mountain. It was fun and I learned a lot. Try this; while you are walking after dark with your head lamp, take it off and hand hold it like a flashlight. It works very well, maybe even better than on you head because it is closer to the ground.
_________________________
Jim M