Merge two WordPress installations into one, and keep posts separated?

When you choose to import them into the new/merged website, you’ll have the option to import the author, or to assign a new one to the imported posts. You could assign different authors to each import and use that to separate the content.

Do both use the same categories? If they don’t it should be simple since they will retain the categories when imported.