Both undercuts and overcuts can be good strategies in F1 23. Generally, an overcut is better strategy most of the time due to cold tyres when leaving the pits.