Enable `clippy::cmp_owned` (#8899)

This PR enables the
[`clippy::cmp_owned`](https://rust-lang.github.io/rust-clippy/master/index.html#/cmp_owned)
rule and fixes the outstanding violations.

Release Notes:

- N/A
9e66d48ccdMarshall Bowers committed on 3/5/2024, 7:36:53 PM· committed by GitHubparentd98b61e
2 files changedLine totals unavailable