Finite group admitting a bijective quasihomomorphism to an abelian group

Definition
A finite group $$G$$ is termed a finite group admitting a bijective quasihomomorphism to an abelian group if there is an abelian group (in particular, a defining ingredient::finite abelian group) $$H$$ and a bijective function $$f:G \to H$$ that is a quasihomomorphism of groups: whenever $$g_1, g_2 \in G$$ commute, we have:

$$f(g_1g_2) = f(g_1)f(g_2)$$

Equivalently, it is a finite nilpotent group and each of its Sylow subgroups is a group of prime power order admitting a bijective quasihomomorphism to an abelian group.