PS Audio GainCell or a DVGA.
https://www.analog.com/en/products/amplifiers/variable-gain-amplifiers/digital-control-vgas.html
Maybe you won't get to "best."
https://www.analog.com/en/products/amplifiers/variable-gain-amplifiers/digital-control-vgas.html
Maybe you won't get to "best."