In the gettxoutsetinfo RPC, if we set use_index to false but specify hash_or_height, we currently hit a nonfatal error, e.g. gettxoutsetinfo "muhash" "1" "false" results in:
Internal bug detected: "!pindex || pindex->GetBlockHash() == view->GetBestBlock()"
rpc/blockchain.cpp:836 (GetUTXOStats)
The failing check was added in #24410, but the previous behavior, returning the specified height together with data corresponding to the tip's height, was very confusing too in my opinion.
Fix this by disallowing the interaction of use_index=false and hash_or_height and add a RPC help example with -named because users might ask themselves how to use the use_index flag witout hitting an error.
An alternative way would be to allow the interaction if the specified hash_or_height happens to correspond to the tip (which should then also be applied to the HASH_SERIALIZED check before). If reviewers would prefer that, please say so.

