Early stopping on lower valid_loss or higher Dice accuracy? - Semantic Segmentation

What is the best option for early stopping and avoiding overfitting in the problem of Semantic Segmentation?

Early stopping on lower valid_loss or higher Dice accuracy?