N.Y. Times endorses two candidates