For now, company Y is probably doing better (purely from a CO2 emissions standpoint). But it's not sustainable, because some of those credits are from companies that just reduced their usage below some threshold. Most of the credits are not from "negative emissions" like planting trees. So as the thresholds decrease over time, there will be fewer credits available to buy and they will be stuck with either really expensive credits or a surplus of CO12 generation.