Then why should be not sha512 more safely as SHA256?
Bitcoin safety = public key safety =
bitcoinaddress safety
bitcoinaddress = RIPEMD-160(SHA-256(publickey))
...
If you replace here SHA-256 with SHA-512 or even SHA-1024, you will get as result a 20 bytes output.