Text this: Bregman divergences for physically informed discrepancy measures for learning and computation in thermomechanics