Compass Inc. and Anywhere Real Estate Inc. struck a deal to merge, building a company with a roughly $10 billion enterprise ...