Missing some TL;DR:
== for values (auto type conversion between comparisons are done internally) , whereas === for type AND value, whereas type takes precedence over value, if type does not match to, it short-circuits which leads to optimisation whatsoever .
Please correct if I am wrong . Thank you .