Per @Catrope's CR in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/OATHAuth/+/1187077/1/src/Hook/HookHandler.php as a followup to T404252: OATHAuth loading more from the database than needed...
Note that if OATHRequiredForGroups is non-empty (as it is in production), this function call will lead to an oathUser lookup still happening for users who are in those groups. So this change won't completely eliminate oathUser lookups on random unrelated page views, but it will limit them to users who are members of sensitive groups. If we wanted to fix that, we'd probably need more lazy-loading in OATHUser, or a more efficient way of looking up whether the current user has 2FA enabled at all without loading the details of all their 2FA keys.
We should either add a way a lazy load to OATHUser, and/or a way to just check if the user has 2FA enabled (1 or more rows in oad_devices as of writing), rather than constructing a full OATHUser object, which, for example, when T145915: OATHAuth OTP shouldn't be stored in cleartext in the DB is deployed, could result in unnecessary decryption of data from the database when it's not required