Let's phrase it another way. If all you care about is information access you could replace libraries with country-wide digital catalogue of media and software, a program to subsidize the cost of computing devices and internet for people with low-income, and some public internet cafes.
This doesn't at all capture what libraries actually do but the argument that we could be doing information access better and cheaper really just comes down to how the numbers come out.