Optimal choice of factorization scales for the description of jet production at the LHC