Disable home realm discovery for some users

We have a multi-tenant app with the identifier first login flow. We’d like to use home realm discovery to route the user to the correct SAML identity provider based on their e-mail domain, but some users are still using a password to log in. Is it possible to disable home realm discovery for some users (e.g. by using an action script) so they can still use a password?