"... your code is technically correct. But let’s consider its performance."
Drop the "but" and you'll engage even more with your mentee.
It's like saying that considering performance is a natural thing to do after writing a correct code, instead of the opposition that the word 'but' introduces.
Dropping the 'but' is a powerful skill !