What’s the difference between a smart home hub and a gateway?

Differences Between Hubs and Gateways

A gateway is solely responsible for network connectivity.

Based on this, a hub manages local operations among devices.

Differences Among Hubs

There is only one primary hub—by definition, the main hub.
If the primary hub fails, the backup hub takes over; if the primary hub remains operational, the backup hub can still share its workload to expand the scope of hub control.

Differences Among Gateways

A secondary gateway functions similarly to a backup hub.

A blind gateway can only handle network connectivity.

Reference