Like any other tool, context is important, and training with those tools in those contexts is important.
My HD firearms all have lights mounted (pistol and rifle). I have a myriad of independent flashlights available, including on the nightstand.
My EDC firearms do not have lights mounted on them. 99.999% of the time I have an EDC flashlight on me.
When I’m out and about, my EDC light gets used for illumination. I definitely don’t want to go around flagging everyone/everything if the only light I have available is on the firearm. I don’t oppose flashlights on an EDC, I just don’t personally use them.
At home, though… If I pick up my firearm, it’s because I’m at least considering there is a lethal threat. And I’d like as many hands on the firearm as I can, which is why I dont have a seperate light in that scenario. There are a great many myths around using lights indoors. YouTube has some good videos if you can’t/don’t want to take a low-light class.
I subscribe to the “you can’t have too many lumens” philosophy. Some folks will say you’ll blind yourself, but with just a teeny tiny bit of practice you know where your mirrors/reflective surfaces are, and putting a substantial amount of light downrange has some obvious benefits. If they are blinded, they are not returning any sort of accurate fire. If you leave the light on constantly and walk around the house, then sure maybe an intruder would take aim at the source (since they aren’t blinded). The proper way is to use quick bursts of light, you know where all your stuff is and should be able to recognize what is “different”, then continue moving.
You can point the light down at the baseboards or up at the ceiling for “umbrella lighting”. That will illuminate a lot without directly pointing at anything. Of course, if you live in an apartment building and have neighbors above/below then you may want to adjust.