TOKYO—Honda Motor Co. and Nissan Motor Co. are planning to join forces to compete in the fast-changing automotive landscape.