I think it is more ghastly and inhumane to think that companies that choose not to market to those they disagree with are somehow doing them a disservice by not marketing to them. They are doing them a favor. It would be completely different if they were saying they couldn't shop there, just like if you intentionally look for women doctor's to tell them that you think they are inferior or if you look for dark skinned people on dating websites to tell them you don't like their race. I personally see no positive effects from advertising whatsoever, and am better off if a company thinks I'm too old or whatever to sell their product to.
While I agree, it's also possible that certain ideologies don't actually lead to revenue from advertising in practice. If I'm selling a line of Jewish labelled clothing, then it doesn't do me much good to include pro-Islam sites in advertising. And although the above is a rather specific strawman, there are many other areas of advertising, companies and products that don't have broad appeal in a given category.
As a potentially better example, if a higher than typical number of LGBTQIIAA+ are likely to be vetegarian/vegan, then excluding them from meat based product advertising might be better use of dollars spent.
Just because an advertiser doesn't want to advertise among contentious groups doesn't mean they are being bigoted about their targeting, it likely comes down to not being worth it due to limited response from those markets.