So, there was not that much alternative to Sophia of Hanover (she died only shortly before queen Anne, thus her son inherited), who was next after Anne Marie d'Orleans if we don't take catholic Elisabeth Charlotte d'Orléans, born Princess Palatine, into account, Anne Marie's stepmother and born as grandchild of Elizabeth Stuart by her firstborn son, the prince elector of the Palatinate - Sophia of Hannover was her aunt, born a princess of the Palatinate as well. Elisabeth Charlotte could have been queen of the UK from 1714 to 1722 - and her son and heir would have been the prince regent of France of that time, having to hold both the posts of regent of France and king of the UK for a year, till Louis XV. became of age... what a choice.
So if look at it this way, Sophia Princess Palatine, married Princess Electress of Hannover was a much better choice for the British parliament than her niece and grand-niece.