It's redundant with CBlockIndex::GetBlockHash()
This is a partial backport of [[https://github.com/bitcoin/bitcoin/pull/22141 | core#22141]]
https://github.com/bitcoin/bitcoin/pull/22141/commits/4e90d2dd0e91e7eb560f2c1b430f13c7a047804f
Depends on D12706