I like Stephen King's advice. He says he doesn't keep a writer's notebook, because that's where you can immortalize bad ideas. The good ideas stick around in your head, and that's what he decides to work on. So, specifically not writing down your ideas can lead you to the best ideas.