ComplexityFunction
ComplexityFunction is an option for Simplify and other functions which gives a function to rank the complexity of different forms of an expression.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.