Just an anecdote...Last week I was on a run and not really thinking about a software problem at all. And then the solution just appeared in my head. Like it got beamed there. Got home and made up for two weeks of procrastination in a weekend.
Alternatively if I start tackling the problem immediately and really put my nose to the grindstone there’s often a lot of moments where I realize I didn’t understand the problem fully, and waste a ton of time backtracking. So it ends up taking the exact same amount of time, only difference is how many times I banged my head against the wall in frustration.