As the poster above mentioned, Methane has a greater immediate impact, but it only stays in the atmosphere "for 11-12 years"[1], making it a relatively short term problem. CO2 stays in the atmosphere for "approximately 100 years"[2].
Since methane is worse than CO2, it's actually better WRT the greenhouse effect to burn it and produce CO2 + water. Water's also a potent greenhouse effect contributor, but the atmosphere's already saturated with it, so the excess will just rain back down.
The atmosphere water content is self-regulating, since it works as a cycle (water evaporating, condensing and raining down, with the atmospheric content mainly regulated by how much vapor the air can hold). Not so with CO2. There is no similar "excess" threshold for CO2 after which it would "rain down".