code: def soft_equals(a, b):
      
      if isinstance(a, str) or isinstance(b, str):
          return str(a) == str(b)
      if isinstance(a, bool) or isinstance(b, bool):
          return bool(a) is bool(b)
      return a == b
docs: Implements the '==' operator, which does type JS-style coertion.