There could be another possibility behind the quote you give too. Maybe, Anduril can hurt Gandalf, as in kill him. But, for Gandalf it doesn't really hurt him because he'll be reborn anyway. He'll be sent back to earth again, so technically it doesn't really hurt him.
These are just theories however