Consider by $S_g := T \# T \# ... \# T$ the $g$ times connected sum of tori $T$. Obviously since it is a compact $2$-manifold in light of the famous classification of compact $2$-manifolds $S_g$ is exactly the oriented manifold with genus $g$.
Now the question: I want to know how to prove that there don't exist a $1$-dimensional cellular complex $C_k$ with $rank_{\mathbb{Z}}H_1(C_k, \mathbb{Z}) = k > g$ such that $C_k$ is a retract of $S_g$?
My attempts:
Let assume that it would be true then there exist an inclusion $i: C_k \to S_g$ and a retraction $r: S_g \to C_k$ with $r \circ i = id_{C_k}$. Since $S_g$ path connected then also $C_k =r(S_g)$ so $C_k$ contains as a $1$-dim cellular complex only one $0$-cell.
Therefore $C_g$ can wlog assumed as a bouquet of $k$ $S^1$-circles.
We have therefore following fundamental groups: $\pi_1(S_g) = \langle x_1,y_1, ..., x_g, y_g \rangle / (\prod_{i=1} ^g [x_i, y_i])$ and $\pi_1(C_k) = \langle z_1, ..., z_g \rangle$ is a free group with $g$ free generators. Futhermore, the homology just abelianize the homotopy groups therefore it also don't lead me to desired result.
Up to now I don't find a way to conclude a contradiction.