The key difference is that Magento is a dedicated eCommerce platform whereas WordPress is a Content Management System (CMS) where you need to integrate an eCommerce plugin, such as Magento, to enable online selling.
Where they share similarities, is in the high configurability of features and add-ons and the ability to use free and paid versions.