L298 driver for two different DC motors
You cannot use L298 at all unless you account for high dropout voltage.
These have totem pole bipolar drivers and you must use a MOSFET bridge or motor driver with deadtime control for low 3.3~5V motors. Otherwise your torque will be very inconsistent with temp and load and your 7.6V motor will never get full voltage or speed.
see datasheet for total drop voltage below;