Mold is not good for chickens... or anyone. (but you already noted that)!
And corn has only about 7% protein with little vitamin and mineral benefit.
You MIGHT consider fermenting what you can salvage.
MOLDY... though, better to walk away than risk the birds for a little savings.
It's really hard for me to see things go to "waste". But risk verses benefit is always a weighed factor. And sometimes waste is the right choice.