I stopped buying physical games when I got a PS4. It's so much quicker to just download games and I can store them all on my external hard drive. It's not like I would ever try selling my used games to GameStop for a couple dollars anyway.
Will you want to play those PS4 games in 10-20 years? To give an example of how this goes, Xbox Live, which launched in Nov 2002, stopped supporting the original Xbox in April 2010. If you had digital purchases and didn't already download them to your Xbox, they're gone forever.
While the lifespan of online services is typically a bit longer now, chances are that game consoles and game discs will long outlive their respective online services. Xbox 360's store is shutting down July 2024[0], making purchases on that console impossible (though downloads of existing purchases will keep working, for however long). The 360 was released Nov 2005, so it's had a much longer online-service lifespan of 18 years, but it's easy to guess that it probably won't hit, say 30. Probably not even 25, I'd wager.
Just to put the PlayStation 4 in perspective, that system was released in Nov 2013. Already 10 years old. I'd like to think it will easily have another 10 years of being able to purchase and download titles online for it, but who knows?
I mean, fortunately I never have to care about this issue - I always purchase the physical version of any console game for this exact reason. I'll deal with a little inconvenience if it means I get to keep my games for decades.