TL;DR
The way the turret priority algorithm works means that in practice railguns will prioritize last any damaged huge asteroid, even if close to them, resulting in spaceship damage sometimes.What?
I included a savefile with an example where the top-left railgun turret will not shoot at the nearest huge oxide asteroid, till its too late.Ideally the algorithm for the turret priority would change, but that can have other issues, so I think the easiest way to "solve" this would be to set explosive damage resistance to 100% on huge asteroids. Realistically you almost never destroy any of them with explosive/laser damage, and while you can avoid laser damage with priority, you realistically cannot avoid it with explosive, so the only practical effect of having those resistances to 99% is that it messes up the railgun targeting priority (I guess maybe you could destroy them with explosives/lasers on a really slow ship).
Why?
Because changing this will make the spaceship take less damage