The hypothesis that WordPress is the best CMS for SEO is deeply rooted, but as John Muller points out (and as I have noted in the past), search engines care about the final result, the one shown to visitors, and not what happens in the backend, a CMS is not considered a ranking factor. In the past, choosing a CMS could help a non-expert user, but today they are all essentially equivalent.
Mueller also added that as far as he knows, all traditional CMSs can create pages that perform well in search. And that SEO is not magic. There are many testing tools, and for the average site owner, they all work well for SEO or can be easily optimized through plugins. I fully agree with John Mueller. Not only has our agency carried out many migrations from WooCommerce to PrestaShop, and by working on optimization, correcting some errors, and doing a bit of SEO activity, the situation in SERP indexing has always improved, but not because PrestaShop is superior to WooCommerce in this area, but because of our experience. In fact, it is experience and skills that make the difference, not the tool; this applies in every field, and you may have already experienced it in your personal life, for example, by changing cars.
I hope that John Mueller's response can put an end to this urban legend.