Drupal definitely has a "cleaner" code base and better software architecture than Wordpress and a better security track record to support that.
Wordpress may currently win on usability, pervasive in the "blogosphere" and provides an ease of cobbling together a site.
However, I think, If you take the time to learn the Drupal API, you will find it preferable, particularly as a developer.
Over the last ~10 years, I've used a range of similar open-source CMS products, from Typo3, Plone, Xoops, Joomla, Wordpress and Drupal and out of all of them, I prefer Drupal.
I think in particular, I like the flexibility and extensibility of the Drupal codebase, as well as the Drupal development community.