Note that `UpdatePreferredDownload` was inlined in D14747 (this would be the next commit in this PR)
This is a partial backport of [[https://github.com/bitcoin/bitcoin/pull/24543 | core#24543]]
https://github.com/bitcoin/bitcoin/pull/24543/commits/490c08f96a34ed436c3d2cf7b9a3ed72694b6147
Depends on D14862