The credit against the taxes imposed by this part for net income taxes paid to another state shall not be allowed to any taxpayer or any class of taxpayers if the allowance of the credit will result in an invalid or illegal discrimination against another taxpayer or another class of taxpayers.
Ca. Rev. and Tax. Code § 18011