1. If possible, buy from the author directly (I mostly read tech books, so that's often an option).
2. Otherwise buy from elsewhere, without DRM.
3. If all other options fail, buy from Amazon but immediately download a DRM-free copy from libgen and use that.
This is both ethical and practical.