Allowing vs. Changing/Eliminating a Thought


When is it best to just allow a thought to be there without reacting to or answering it versus working to change or eliminate it? How do you know which method is best?