Biogas is produced from biomass (plant and animal products).
Biogas is more advantageous because
Excellent fuel, which is 75% methane
Burns without smoke
Leaves no residue like ash in wood, charcoal and coal burning
High heating capacity
Slurry left behind can be used as a manure