Can't join 2 vertices
You can edit multiple meshes in edit mode since Blender version 2.80 and the operation you are trying to perform is for a single mesh. Make sure it's a single mesh. Go into object mode and join the meshes if they are separate with Ctrl+J