The green and blue functions both incur zero loss on the given data points. Regularization will induce a model to prefer the green function, which may generalize better to other data points sampled from the underlying unknown distribution.