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 Mac computers and iPad devices have a hardware disconnect that helps ensure that the microphone is disabled whenever the lid is closed.
support.apple.com