This. A million times, this.
And it's not just to ourselves. Talking to anyone or anything. So much so, that we as software engineers have turned it into a business culture. Literally.
At our company, on every desk there is a "duck". This is like an action figure, a doll, a picture of somebody, a stuffed animal,... whatever. It can even be a coffee mug, it doesn't matter. But we do insist on a dedicated object. The desk is literally incomplete without the "duck".
The idea behind it is, if you have an engineering problem, are faced with a bug, whatever... that you can't seem to solve or which baffles you.... Before you go running to disturb your colleagues asking for help, explain your problem to the duck first. And assume the duck knows close to nothing about your work, just as the colleague you were about to bother.
This practice literally boosted productivity of all engineers.
As you explain your problem to the duck, you gain additional insight because it forces you to step back and give the duck a bigger picture. Many times, this enables you to come up with a solution yourself.