What do you mean with "other things" ?If you only care about SEO and nothing else matters, then yes, move to WP.
Is it better to move from Shopify to WordPress due to SEO or can SEO optimization be done also on Shopify and also build a blog on it?
I would prefer to use WooCommerce above Shopify as I do like to have full control over the website and webshop.
Shopify can always close down your business without providing you with any information. Been there, done that.
I mean the main focus is still ecommerce - selling own products. But I would like to also build blog to gain some organic search results in the long term.Evaluate your needs. While WordPress offers robust SEO capabilities and blogging, Shopify can optimize SEO, and its simplicity suits e-commerce. Choose based on your site goals and preferences.