Both Magento and WordPress (with WooCommerce plugin) are good for e-commerce. These platforms are both popular and reliable. They, however, differ in usage. Magento is a complex system used for websites with complicated functionality and a lot of third-party tools + customizations.
WordPress without WooCommerce plugin is used for blog, government, and educational websites. It has no sense to create an e-commerce website just on WordPress without using WooCommerce.