pub fn conditional_select_nospec_eq( x: usize, y: usize, a: usize, b: usize, ) -> usize
returns a if x == y, b otherwise. Immune to speculative execution information leak bugs such as Spectre V1.
a
x == y
b