Hey Nature
It's totally up to you as to which version of the textbook you choose! Do you prefer to read a physical or electronic book?
Having the online version of the textbook saves space in your bag. It can be handy if it has diagrams and tables that you can take a screenshot of and paste into your notes easily. You can even split screen your notes document and textbook if your laptop offers this feature, something that can't be done with the physical book haha. Online versions tend to be cheaper too.
On the flip side, online textbooks present the potential issue that you might be distracted more easily due to the internet being readily available.
It might be better for your eyes to read off a physical textbook rather than a computer. However, there are plugins you can install on your computer to filter out the blue light for a more eye-friendly read (e.g. Flux).