In modern terms, mounted infantry typically are in Humvee-type vehicles, whereas cavalry are in things more like tanks.
IMO the attack helicopter is a better modern equivalent to cavalry than the tank. Hard to make a direct comparison since increased firepower and command-and-control have made military forces incredibly dispersed.