I'm always grateful when someone buys one of my books, whichever outlet they use. But I always do my best to nudge them towards retailers other than Amazon, wherever possible. It's better for me, for publishing, and for humanity in general.
A reminder: If you absolutely cannot boycott Amazon, don’t. But can you make them NOT your default? If every Amazon customer cut their spending by just 10%, Bezos would burst his facelift sutures. This doesn’t have to be an all or nothing.