BMW wants to cooperate more closely with its main competitor, Mercedes.