A common homework problem in topology classes is to find a quotient map $p : X \to Y$ which does not admit a (continuous) section $s : Y \to X$. The standard example of such a phenomenon is the map $[0,1] \to S^1$ which identifies the endpoints (or some variant on this theme, for instance $\mathbb{R} \to S^1$ is just as good).
One (perhaps overkill) way to see that this map fails to have a section is to look at what such a section would mean for the fundamental groups. $\pi_1 [0,1] = 1$ and $\pi_1 S^1 = \mathbb Z$. So if a section did exist, then the induced map on fundamental groups would mean the identity factors as $\mathbb Z \to 1 \to \mathbb Z$. Contradiction.
The question then: Provided our spaces are nice enough, does this same proof work for every quotient without a section? Or are there spaces $X$ and $Y$ so that $p: X \to Y$ has no section, but factoring the identity as $\pi_1 Y \to \pi_1 X \overset{\pi_1 p}{\to} \pi_1 Y$ is abstractly possible?
As a bonus question, is there categorical language for this phenomenon? I think I'm asking if $\pi_1$ reflects split monos, but I'm not quite confident enough to phrase my question that way.
Thanks in advance!
Do your same construction with $D^2\to S^2$ (identifying the boundary circle to a point). $\pi_1$ is too feeble to work here, but $\pi_2$ or $H_2$ will do.