`HashMap` has a `merged` method that would be useful to have on any (immutable?) `Map` (discussed at https://github.com/scala/scala/pull/8134#issuecomment-513963572).