Let's take the AI out of this for a moment.
I occasionally find a solution to a problem on Stack Overflow. I copy-paste that solution and in my codebase I link to that solution as attribution.
Perhaps a project adds a policy "No code from Stack Overflow allowed."
That's fine!
If I understand the underlying mechanics of that solution I found, I would then close the tab and not copy-paste anything. I would "reset" my brain. Then I'd go in and program the solution myself.
Make sense?