Surprised no one mentioned it. Sugar. If I eat a lot of candy or sweets for example on a weekend, my logical faculties always seem low. Pattern matching and quick thinking is replaced with scatter brain.
Booze is a lot worse of course.
Weed seems to do other things, can help with creative out the box thinking but sometimes that’s not what you need.