>>1813205cyclocross has racier geometry, smaller tire clearance (i think uci max for cyclocross bikes is 33m? for what they can race with.), and usually no utility designed into the bike
gravel bikes have more relaxed geometry, usually wider tire clearances and usually have utility thought out for the bike for bikepacking ect.
if you are asking this question you probably want a gravel bike and not a cyclocross bike