It's good that it's only 2 gallons. That won't be as hard a hit as dumping 5 gallons. I would still let it ferment then taste a sample out of the primary before bottling/kegging to decide whether to dump it.
Yeah, scorched is one of those things that won't get better with time, but if you're feeling experimental the play with it, like Johnnyhitch said. Turn it into something weird.
It's not a complete disaster after all. The star anise blends well with the coriander seed. Kind of bitter and a little sour.
Definitely gonna have a couple more.
I'm thinking that alot of it will be swilled down by my booze hole beer mooching friends.