Sizing advice: Canyon Grail 6

Hi good people,

I'm a pretty beginner cyclist and planning on getting a canyon grail 6. My height is 178cm and my inseam 84cm.
On Canyon's website, it suggests me to go for the size S, but changing the height just one more cm gives me an M.

On numerous reviews, I've seen people suggesting to go for the larger size for this particular bike. Please share your advice/suggestion on this bike. Thanks
https://www.canyon.com/de-de/gravel-bikes/all-road/grail/grail-6/2369.html?dwvar_2369_pv_rahmenfarbe=GN%2FBK

https://preview.redd.it/o57bb9vt7hv61.png?width=1060&format=png&auto=webp&s=3970accb77941b7332e7f28a63b152e226c2744a