I saw this list of turkish recent losses and the causes. I have no idea how reliable it is
https://www.reddit.com/r/syriancivilwar/comments/5jw89a/taf_armor_loses_in_albab_in_recent_clashes/
According to that it's mostly ATGM hits disabling the vehicles and of course some were abandoned.
Geopolitically I think it is better if Turkey pays dearly for Al Bab. It may make them stop their incursion into Syria there and Erdogan will understand the price to be paid even against militants. And of course anti-regime and ISIS fighters killing each other is beneficial to the Assad regime so that's good imo.
Those suicide attacks can sometimes totally turn the tide, it's really eye-opening. Maybe modern militaries should invest into suicide combat drone versions of the conventional combat drones they are developing. It is important that they look exactly the same, too.
It's a discipline issue. The problem is that undisciplined infantry units turn and run. This isn't the case when VBIEDs were used in Iraq against the US. It also didn't work out for ISIS when they ran into a Russian unit when they counter-attacked regime forces west of Palmyra. This is why I commented on the Turks being better off with their own infantry protecting their tanks.