It 100% does play a role. The bro-science is an unfortunate reality with cannabis but the scientific community is quickly stomping it all out!
Multiple factors are relevant. Yes, to what you said initially. If harvesting during the day time then your potency will be decreasing throughout the day (morning would be the most potent). This effect is nominal and really only matters for try-hards. The mechanism is photons, mostly the high energy ones like UV, destroying cuticle heads and being repaired at night. This is why you will see a cyclical potency oscillation day to day as the potency trends up during flower.
If you believe in flushing or understand mass transport in botany, you'd be aware of the salt transport cycles in cannabis from day to night - meaning one should always harvest during the given plants night cycle with the first step to harvest being severing the root system from the plant. Try it for yourself - it changed my life. It is most important for soil mediums where your salt content is always a guess at best.
If anything, the pre-drying on stem by depriving of water is bro-science (unless you live somewhere with absurd humidity levels and need to). You're shortening your dry - which you want to be the longest possible. Also potentially locking chlorophyll and salts into flower tissue which is only going to aggravate a cure phase. If you do a side-by-side of flower dried on stem versus not, the flower NOT dried on stem is going to taste fire way earlier in the cure than the flower dried on stem.
The same way that bending a plant to your schedule only has so much legs. For example, if you swap the photoperiod timing around...the next few days the plant will still be conducting mass transport on the original rhythm. So you can't just do two days of darkness and then harvest in your 'would-be' daytime that is now dark to get this effect.