Well "consuming" the code means copying it word for word into your source tree. The compilation process does mangle it a bit but usually you can find identical function names and so on, and the courts have ruled that object code is equivalent to source code for purposes of copyright.
A different situation is you read a copyrighted news article and write the facts from it in your essay. Since the copyright of the news article only extends to creative expression and not factual information, there is no violation. For me, it is hard to tell what difference there is between this situation and an LLM identifying statistical patterns in the news article.