Interchanging in a recipe
Clearly, the three fruits can be used for the same purposes, but can they be swapped out in any recipe?
Because peaches and nectarines are so closely related, they are easily interchangeable in recipes. So go ahead and use the nectarines in the peach salsa recipe if you want, or use a peach jam recipe to make nectarine jam without any other changes.
Apricots, however, don't sub in as easily for peaches. They have a different flavor, and more importantly, they have a different water content. In any recipe where the juiciness is important, say a salsa, or in a recipe where the fruit is cooked, the substitution will make a difference, and not in a good way.
However, if you have a smoothie recipe that calls for peaches, substituting apricots many change the flavor, but it will still work. The same if you're adding them to a green or fruit salad.