"Understanding" someone else's solution is not comparable to solving it on your own, even if you can answer some questions about it. It builds extremely fragile surface-level understanding.
That struggle and repeated failure before finally connecting the dots on your own is how you build intuition and deep understanding.