Personally, I find if I've got a very clear road ahead of me with few complex decisions, I can just steam ahead, maybe for 12+ hours with few distractions. However, when it gets into the weeds, it's harder to keep going like that. Spend a little while thinking, have a break, read the latest tech news, walk around a bit, come back, think some more - eventually figure out the answer. I could fill that time with busy work, but I personally feel that I find a better solution if I have some room to think.
Procrastination is definitely a thing too, and it can be hard to stay motivated when the feeling of progress is so non-linear and lumpy. It can feel like nothing is being done for weeks at a time, then suddenly everything fits together.
Meanwhile I have no issues doing, say, physical gardening work. Can spend hours digging, weeding, building planters. Lots of time between decisions to think about what you're doing next and simple, linear, visible progress throughout the day.