How to merge specific vertices of mesh A with mesh B?



I am looking to allow the user to select one vertex from Geometry A, and one from Geometry B, then merge only those TWO vertices together into the same position. This would also make Geometry A and Geometry B merge into Geometry C (But the positions of Geom A and B stay the same apart from the two selected vertices that have been merged)

Thank you.