For the deal to make sense, the costs of working together in a contractual relationship would have to be greater than the costs of merging.
Merging costs would need to be less than the costs of co-working contractually for the deal to be viable.