Replace some verbose match statements with their `if let` equivalent.

No semantic changes, no enabling `if let` where it wasn't already enabled.
auto merge of #19405 : jfager/rust/de-match-pyramid, r=alexcrichton

No semantic changes, no enabling `if let` where it wasn't already enabled.