Bad analogy. The Old Covenant was established well after the story of Hagar.
Take up your argument with the Apostle Paul, he wrote the analogy.