Example. Group homomorphisms [01KW]

Any semigroup homomorphism that preserves identity elements preserves any inverses that exist.

It follows, therefore, that the correct notion of homomorphism between groups is the monoid homomorphism without any additional conditions.

\begin {aligned} \hom _{\mathsf {Group}}(X,Y) &:\equiv \hom _{\mathsf {Monoid}}(X,Y) \\ \underline {\hom }_{\mathsf {Group}}(X,Y) &:\equiv \underline {\hom }_{\mathsf {Monoid}}(X,Y) \end {aligned}