Let the lines through B and C parallel to XY meet AM at P and Q, respectively. Since BM=MC, we have PM=MQ and
XABX+YACY=TAPT+TAQT=TAPT+QT=TA2MT=2.

Let Ia, Ib, and Ic be the excenters of △ABC opposite A, B, and C, respectively. Since the figures BHaCIa, CHbAIb, and AHcBIc are parallelograms, we have
2=XABX+YACY=HbABHa+HcACHa=CIbIaC+BIcIaB=rbra+rcra=S/(p−b)S/(p−a)+S/(p−c)S/(p−a)=p−ap−b+p−ap−c,
which is equivalent to 2a=b+c.
On the other hand, HaT⊥BC⇔BHa2−HaC2=BT2−TC2. Let U be the tangency point of the ex-circle opposite A and BC. Then
BHa2−HaC2=CIa2−IaB2=CUa2−UB2=(p−b)2−(p−c)2=a(c−b).

Also, since BT and CT are medians in △ABM and △ACM, respectively, we have
BT2−TC2=21(BA2+BM2)−41AM2−21(CA2+CM2)+41AM2=21(BA2−CA2)=21(c−b)(c+b).
If b=c, then HaT⊥BC by symmetry. If b=c, then the above implies that
HaT⊥BC⇔BHa2−HaC2=BT2−TC2⇔a=21(b+c),
as needed.