For commuting I would look for a sturdy touring bike, a gravel bike AFAIK is intended for recreation and isn't built around the purposes of someone actually depending on it for transportation. Touring bicycles are not only stronger and built to last, but they're usually built to be easily maintenanced if broken down on the side of the road, etc.
I say this as someone who started commuting with a hybrid bicycle and had endless problems - broken spokes, eventually a broken frame, etc. The recreational bikes are just not as good as touring bikes for commuting.
The touring bikes I've seen typically have thicker tires and enough tread to handle dirt roads and grassy paths.