Hypothetical for you:
Learn more if you tried to figure it out yourself for 3 hours then used the LLM for the last hour to unblock/check your work? Or learn more by utilizing LLM for help the whole four hours?
My own experience is what I learn from an LLM sticks better if I take the former approach.