Environments created by pypa/virtualenv >=20 can pass both real_prefix and base_prefix checks, but are only able to use the pyvenv.cfg values, not the legacy `no-global-site-packages.txt`. So we need to check for venv (PEP 405) first.