I used to ride as my commute. My current job is remote, so I try to do a “fake commute” and ride first thing in the morning or immediately after work. Then I do a longer ride on the weekend; again, first thing in the morning (I sunburn easily, so earlier or later helps beat the worst of the Sun a bit)
I don’t personally do this (don’t have the spare cash for a ticket tbh) but it seems like just about every other cyclist already does this. People do it for a reason. Just update the laws to match reality.