pub fn select_match_opcode(slots_needed: usize) -> Option<Opcode>
Select the smallest Match variant that fits the given payload.