I think both are inevitable and I'm ok with both. I think a sticking point is that its considered normal to make your own art in the style of another but abnormal to copy code verbatim. Art seems to be clearly the former while there are instances that probably stick in people's minds where copilot has produced verbatim examples.
Indeed it seems like code will be vastly more prone to this problem compared to art because changing a single pixel is merely a question of aesthetics whereas code is constrained tightly by the syntax of the language. With a much smaller space of correct results duplication is likely inevitable.