The diodes protect your transistors (inside the chip) from the reversed voltage peak that will occur if a voltage on a coil is shut off, like what happens in this chip and PWM speed control.
Those diodes will from a short circuit to the reversed voltage, but not for the output signal.
You need fast diodes for this, so the short circuit is reached before damage can be done to the transistors.