Is there a way in which we can merge two meshes in edit mode?
Select one of your squares. Apply a BOOLEAN modifier with UNION.
Make sure the subdivision number is the same, try aligning them vertex to vertex. Use snap if necessary.
Set the boolean operator to UNION and select the second square.
Voilá.
Thank you for your consideration to vote me as the answer by clicking to the left :the icon with a check mark and upvote this answer.

BFCT_Schiller