[mlir] Add Python bindings for op structural equivalence and hashing (#216357)
Adds Python bindings for `is_structurally_equivalent` and
`structural_hash` to `_OperationBase` and the flags which they both take
as arguments. The C APIs already exist, so this just exposes them in
Python.
Assisted-by: gpt-5.6-luna