Selection of coding mode or of prediction mode