I’ve only just started doing this - but my understanding is that the lids go into compost. The bottoms shouldn’t because the grease turns to a yuck sludge in compost bins.
If you live in an area that collects material for industrial composting you should 100% put the grease coated parts of the cardboard in your compost collection bin.
[0] https://www.portland.gov/bps/garbage-recycling/compost-what-...