In 2007, I had to take a three month leave between jobs. My self-appointed task during that period was to understand why the worst cup of coffee in Italy was better than the best cup of coffee in the US. I quickly found the serious online coffee community, and learned that, as good light is to photography, so freshly roasted beans are to coffee. It doesn't guarantee a great shot (ho ho), but without it, you're screwed.
I also learned that fancy equipment had nothing to do with great coffee. But we're in the MF forum, so when did that stop us? This is my third espresso machine (the last one, similar to the current one, was with me for over 10 years.) The grinder is my 5th? 6th? You can't get a too good grinder. After the beans, it's the most important tool. There is an Italian saying that the four important elements of coffee are (they all start with the letter "M" in Italian) Machine, Grinder, Beans, and Barista, and the first is the least important.
To put these beasts in Camera terms, the machine is Leica M10 territory, and the grinder is Sony A7RIII.
If you want non-espresso coffee, which is much more versatile, a good drip (Kalita Wave), French press, Moka pot, or Aeropress will do spectacularly. But GAS...
Yes, it's a snapshot with an X1D
Matt