Years ago I read a blog that I always remembered, very summarised it stated that even though developers logging a lot of overtime are generally considered to be hard workers most of them actually are horrible at planning their work.
The developers who don't log extra hours don't have to be less motivated, sometimes they are just a lot better at prioritising their work.