The usual brake on a train that can't do regenerative breaking is a big grid of resistors to dump the energy as heat.
It's much less wear and tear than friction brakes.
https://en.wikipedia.org/wiki/Dynamic_braking
And diesel hydraulic trains (and some buses) usually use these: https://en.wikipedia.org/wiki/Retarder_(mechanical_engineeri...
And diesel hydraulic trains (and some buses) usually use these: https://en.wikipedia.org/wiki/Retarder_(mechanical_engineeri...