I remember when this was first starting, the digital copies were like 30% cheaper. A lot of people, including myself, took them up on it because it made most things easier. (Especially when publishers would be coming out with new editions every year and many profs just made the new edition the required one regardless of any substantial differences)
Not a current student, but know some in tech programs. At least in colleges (as opposed to universities), a lot of professors have been moving away from textbooks. But maybe the students I know are just lucky, lol
There are still publishers who do exactly what you describe. Pearson was doing maybe 10% off for the digital copy. You could buy used textbooks, but then you’d need to buy the “digital pass” for the homework, which was more than half the cost of the book (and it wouldn’t give any digital access to the book itself).