> I was writing on Medium because it ranks well in Google.
This highlights one of the ways Google has gone off-piste. The host or platform shouldn't affect your ranking/SEO this much. The same article on two platforms show rank side-by-side when searching by content. There's no reason to trust Medium above other platforms.