Relativity is used when speed is high enough. Quantum mechanics is used at subatomic scales. Thus, relativity and quantum mechanics are complimentary, depend on different variables, and should follow the law of identity: https://www.researchgate.net/publication/381469939_Critical_Rationalist_Physics