DC is as has been said dangerous because the muscles are tensed and likely to lock onto the live conductor. AC on the other hand will cause the muscles to go into a shake mode which usually will cause contact to break, (providing the body is not resting as a dead* weight). At a frequency of 50Hz, there would be no opportunity to consciously remove during the zero-crossing points.
*No pun intended.
Body capacitance is very low, (for measurement purposes it is often regarded as 100pF, i.e. 1x10 to the power of -10) and that gives a capacitive reactance of 200Mohms. Therefore the current drawn from a 25kV supply would be in the order of a hundred micro-amps, a small jolt but survivable shock.
Body resistance is reckoned to be between 1000 and 100000 Ohms, mainly dependent on whether the skin is wet or dry. That means that direct contact to a 25kV supply would give a body current between 25 and 0.25 amps respectively. Both are way above lethal levels and significantly both well above any current caused by capacitance, so in the event of direct contact or proximity close enough to cause a flashover the capacitance is insignificant.
In the case of contact with a DC line, say 750V, a direct contact could result in a shock current between 0.75A and 7.5mA, both in the lethal range although it would be possible for some to survive if their skin was dry enough and the contact of short enough duration.
Arcing between power supplies and legitimate loads is usually controlled by ensuring that contact is restored as soon as possible, e.g. 3rd rail breaks at pointwork, or by temporarily removing the load, i.e. balises at netral section of OHLE. The ABBs are a lot more important on the 1500VDC OHLE routes where repeated drawing arcs onto the neutral sections cause frequent wire failures, - not as bad as this one though:
https://www.youtube.com/watch?v=FivDcIHfguU
On this, the initial failure caused high currents to break the contact wire which then sagged and continued to short against the coach roofs. A spectacular example of why low voltage DC is difficult to protect against faults yet provide the high traction currents required. On ac power lines i.e. as with the national grid, a rapid change in the impedance of the circuit is detected and interpreted as a fault, then power is removed. Even if the line breaks and the current suddenly drops to zero, it can isolate the the line before the cable touches the ground. I'm not sure if that is true for 25kV OHLE.