> Clearly, the company with fewer lines of code is better off.
Well, there is some dimension pertaining to how well the code is understood by the employees of Companies A & B.
The theoretical advantage of a smaller codebase is of scant practical value if that codebase cannot be maintained.
And maybe this point is captured by the "very similar companies" statement.