You're right. I made a mistake. The 2020 iPad Pros don't have a T2 chip, but they do have a hardware microphone disconnect. Since it's hardware, you can't get that on your 2018 iPad Pro.
Supported iPad devices and Mac computers have a hardware disconnect that helps ensure that the microphone is turned off whenever the cover or lid is closed, respectively.
support.apple.com