It's worth reading section 10 of the attached data sheet re. heatsinking - if you're drawing high currents:-

https://www.ti.com/lit/ds/symlink/l293.pdf