I wonder if you thought about perfect hashing instead of that comparison tree. Also, flex (as in flex and bison) can generate what amounts to trees like that, I believe. I haven't benchmarked it compared to a really careful explicit tree though.
This last fact might actually support the current model, as it grows linearly-ish in the size of the instruction, instead of being constant like hash.
It is not part of RISC-V, nor supported by any CPUs outside of that vendors' own.
Ofc, I did add my own bugs.