If anyone has problems with Safetynet failing or Widevine stuck at L3, please first try deleting all app data for Google Play Services, Google Pay, Play Store, Netflix and Prime Video (if applicable).
I was failing all tests on my Mi 9T, but just deleting the app data fixed everything.