Implemtation of equality check without the use of equality operator (i.e., "=").