I can't imagine the first one would taste good even in cooking....I don't know how it got so bad but it has lots of inky, oxidized, and an off flavor I can't quite ID but seems like it is too much hops in too dark and small of a boil.
The other one mihght actually be ok for cooking, too much...