You can hide the login link via CSS, then no users can see it. You could then share (or publish on an internal site) a direct link to the OpenID or SAML login for your internal users. As the users aren’t logged in when they hit the login page, there’s no way to know if their internal or not.
You can also change the button label to try and avoid confusion. For example, in the image below we labeled the button for “internal users” Discourse Staff. If not Discourse Staff try to use it, so be it:
