Formation of compound with congruent melting point