Composting plastic makes no sense. When bacteria eat the plastic they produce CO2. Just burn the plastic in power plant and you'll have the same amount of CO2 plus energy.
I think the motivation behind compostable plastic is to reduce the amount of micro plastics ending up in the environment rather than CO2 emissions.
That said, burning non-compostable plastic (with appropriate emissions control) does seem like an appropriate way of disposing of it, and generating some energy in the process.
When bacteria eat things, unless you're very careful to keep things aerobic, you end up producing a lot of methane, which is a much worse greenhouse gas.