It’s very hard to calculate exactly how much the ecosystem inside a country borders can offset, but a good enough metric is its landmass.
Sure, countries like Morrocos will win with this metric and countries like Brasil will lose. But in the end, it’s much better than rewarding what is actually a problem (for climate) like if it was some virtue: high birth rates.