Agreed. If I get stuck on something and nothing I try makes it work properly I'll go shower or take a bath. 90% of the time just relaxing and getting away from it will be enough to make something click.
I get all my best ideas in the shower!! I like to think it's the hot water stimulating my brain.