The law will consider "intent". By your logic, web browsers are infringing.
Can you use curl to infringe on copyright? Yes. Is every time you use curl copyright infringement? No. Can you in theory tell when you are infringing with curl? Yes.
Can you use copilot to infringe? Yes. Is every time you use copilot copyright infringement? No. Can you in theory tell when you are infringing with copilot? *No*