I use the local public library from time to time (physical/via Libby) while reading on my kindle otherwise. Libby is something else, but for the physical books, I just see zero difference between going to the library in person, checking it out and returning it later vs just pirating it online. It's not like the publisher does not get any more money. OK there is a difference where there is a limit to the number of copies available, so some people have to wait, just typical of public resources. But I noticed that most books I borrow are always available, especially with interlibrary borrowing. So what difference does it make?
In the end I pirated more often. I am not proud of that, but I also don't see how any of this makes any difference. It's not like I'll ever buy the book with my own money.