[mlir][arith] Don't apply SelectCommonElementwiseOp to nested selects (#243050)
`arith.select` is itself pure and elementwise, so the pattern added in
#234818 also matched selects of selects:
select(c, select(d, a, b), select(d, x, y)) -> select(d, select(c, a,
x), select(c, b, y))
The result matches again with `c` and `d` swapped, so the greedy
rewriter never converges, causing canonicalization to hang or run out of
memory on code with nested selects (e.g. math function expansions).
Bail out when the select operands are themselves `arith.select` ops.