When is batch correction appropriate?

When in doubt if batch correction is appropriate:

Consider figures 7.24 and 7.25, where cells are colored by sample. Without batch correction (plots to the left), the cells visually cluster by sample, while with batch correction (plots to the right), the samples are mixed. Batch correction is: