Hello! Why is it that I cannot deduct my textbook expenses that were purchased off-campus for graduate school? Is it because of the American opportunity credit?

Read that textbooks that were required to be purchased from the campus count as a deductible, but those that were not required to be purchased from the campus do not count.