If $X$ is co-H, then $\pi_1(X)$ must be a free group. If $X$ is H, then $\pi_1(X)$ must be abelian. The only free group that is abelian is $\mathbb{Z}$.