Except in rare circumstances, mostly human ones, animals (including humans) don't want to die, and die anyways.
The best we can give them is a fervent (typo) decent life and a humane death. The meat industry is atrocious at this, and carbon dioxide is a terrible idea - particularly when nitrogen is readily available, humane, and cheap.