A switch is more intelligent than a hub. While both devices connect multiple devices in a network, a switch forwards data only to the intended recipient, optimizing network efficiency. A hub broadcasts data to all connected devices.