"We test this by comparing the likely state of competition if the merger proceeds with the likely state of competition if the merger does not proceed."
Under the terms of the divestment undertaking, Ampol is required to sell Gull as a going concern within a specified timeframe to a buyer approved by the commission.
In granting clearance, the commission is not approving Allegro as the purchaser of Gull, Rawlings said.
Under the terms of the undertaking, Ampol is required to obtain separate, formal approval from the commission for Allegro to acquire Gull.
The commission gives clearance to proposed mergers if it is satisfied that it is unlikely to have the effect of substantially lessening competition in a market.
A meeting of Z Energy shareholders is scheduled for Friday, March 25, to consider the offer, which is being undertaken through a scheme of arrangement.