Listening is definitely better, but your mind will start to wander if you get bored. You have to forcefully do something to get back your attention.
The same thing works for many repetitive activities. Wear headphones while doing dishes. Listen while driving, walking, anything of the sort. The important thing is to have something that takes up a bit of brain, but not too much.