The hypothetical woman who marries seven brothers is built upon a real biblical institution rather than an invented marital custom. The Sadducees appeal to the law associated with levirate marriage in order to challenge belief in resurrection.
Understanding that law makes both the logic and the artificial escalation of their question clearer.