The issues with goats and cattle have been mentioned - they can be managed if you try, but it requires understanding and managing it. You need strong posts for cattle. For goats something they can't chew, and also if they can get on the panels they will so again strength where you might not want it.
You can grow corn under these if you want - you just need to be tall enough for the tractors to get under and other such concerns.
Sheep are easier on the surroundings in general.
Sheep are less chewy and are much more content in trying to find ways to kill them selves in new and difficult to clean up ways.
Cows raised in pasture that is properly managed and rotationally grazed - these can end up carbon negative.
* the pasture being well managed sinks CO2 long term.
* methane emissions from the manure decomposition is minimal
* the feed isn't trucked around
* if slaughtering and butchering are done on-site the only trucking needed is sending the beef product offsite.
I work in solar farm development, and as we already have a very renewable grid adding more solar does not greatly reduce our emissions due to avoiding fossil fuels, however the removal of cows from the land we use is arguably the some of the best environmental outcome of our work.
The CO2 sing being temporary is a true statement, but incomplete. For instance, coal turns out to be a merely temporary sequestration of CO2 also. The more healthy plants and soil (micro)organisms, the more carbon is locked up in those life forms. Further a lot of that carbon in healthy soil stays for quite a long time - it gets locked up in peats and other products of anerobic zones deeper down - some gets washed into river/lake/ocean bottom sediment for even longer periods of sequestration. Yes decomposition keeps the largest portion of it in a short term cycle, on the order of a few years, but claiming that having more life doesn't help CO2 because its "temporary" is a bit of overly-reductive misdirection sold to justify the status quo.