LOS ANGELES — Mazda is discontinuing two of its slowest-selling models in the U.S., the entry-level CX-3 subcompact crossover and the Mazda6 sedan, as it shifts the product lineup to a new generation of vehicles that better reflect its premium intentions.