Draw the two useful samples
Select a comparable region in each image or layer, then enable calculation from the intended selection. Confirm which is the active target.
Choose the application area
Keep the target boundary when the current selection defines the repair. Use the whole target layer only when each visible part needs the change.
Example
A gray lapel can estimate the correction for a copied portrait layer even when you want surrounding pixels in that layer adjusted as well.
Pass condition
The source patch drives the match and the effect ends at the intended mask or layer boundary.