I use both. Headlamp is great when working on something when you need both hands free. And doing pretrips at night. Also keep a good Maglite. And I buy those cheap led lights for around abuck each 10 at a time. Keep one in my toolbox and in the driver's door pocket. Also in glove box in both cars.
I use this one. Just found this amazing item on AliExpress. Check it out! US $38.70 | C8.2 XHP70.2 led tactical flashlight cool neutral warm white light 3800LM 26650 18650 camping torch super brightness https://a.aliexpress.com/_mqP4v12
For best results, avoid flashlights that use 1.5 volt batteries and stick with flashlights that use 4.2 volt lithium batteries
They don't make very good flashlights. I've got this one. It's very bright and the type c battery charge port is convenient.