Medium in it's purest form is a blatant SEO siphon from your website. Well written articles will generally place highly on Google's search results no matter the domain(unless you've got shady shit going on). God knows what metrics they're using these days (mostly ML?) But Google readily recognizes articles well written from expert sources in my opinion. I've only written around ten blog posts but they're all first page, some first result, for my goal keywords.
And this is on a no-name website not optimized for SEO at all. The SEO arms race has been going on so long that we've reached a point where, if you're a good writer, it's easier to follow Google's guidelines than try to cheat the system.
Medium and other blog sites are basically a guest blog, except you're not getting paid for placement. Google ranking is everything and posting on medium does nothing but hurt you gravely