It's important to recognize this tendency in everyone. When I have the instinct to say something like that, I switch gears and recognize that I'm not helping - I'm actively asking them to stop working on the problem and get me caught up.
Usually the only time I'm actually helpful in situations like that is if I have esoteric knowledge or experience that is uncommon and directly related to the problem at hand - "Oh, I ran into this 3 years ago, here's what we did to solve it". Your peers have already tried the obvious things.
Another rule of thumb to notice when this is happening is the word just. "Why don't you just..." is a belittling thing to say, as if they hadn't already thought of the obvious. Better is "why didn't X work"?
Usually the only time I'm actually helpful in situations like that is if I have esoteric knowledge or experience that is uncommon and directly related to the problem at hand - "Oh, I ran into this 3 years ago, here's what we did to solve it". Your peers have already tried the obvious things.
Another rule of thumb to notice when this is happening is the word just. "Why don't you just..." is a belittling thing to say, as if they hadn't already thought of the obvious. Better is "why didn't X work"?