They didn't have to cheat on NOx. They could have installed a selective catalytic reduction (SCR) system with an end-user refillable urea (AdBlue) tank. Just like all heavy diesel vehicles have had for years now. It would have added maybe $100 in cost to each vehicle.
The SCR system is an after-treatment for exhaust gasses and does not significantly affect fuel economy or performance.
Your core theoretical claims may be true, but this specific example was not the fact revealed by the emissions scandal. VW had to cheat on NOx emissions numbers to get their diesel engines to match gasoline efficiency and performance.