Generally, in the US, competition inquiries focus on the Herfindahl-Hirschman Index (HHI) for a quantitative evaluation of industry concentration (https://en.wikipedia.org/wiki/Herfindahl_index). A potential combination with market shares such as Amazon's and Whole Foods' usually won't be seen as dangerous using that metric.
There are other concerns as well, of course, but the HHI is a critical one.
[1] https://www.statista.com/statistics/240481/food-market-share...
Whole Foods is in the grocery retail business.
The consolidation is kind of obvious.
EDIT: Is delivery even relevant to the topic at hand? It's basically a completely different type of business.
EDIT:
> EDIT: Is delivery even relevant to the topic at hand? It's basically a completely different type of business.
I think it's pretty clear that people do substitute between in-person and online retail based on price and other competitive factors, so they aren't isolated, unrelated businesses.