に越したことはない => It’s best that, There’s nothing better than ~ N2
に[越「こ」]したことはない => It's better if A, it's better if it's A N1
Comparison/ Exchange