The difference being, when Democrats in power do it, Republicans try to win elections the best they can by persuasion and meaningful debate with an eye to redraw these according to their interests. When Republicans in power do it, Democrats find a sympathetic, unelected judge to invalidate what the voters indirectly mandated.
Its part of why the system is irretrievably broken and cannot be fixed as long as parties exist. Parties will always be loyal to themselves first.
The only thing that is "broken" is the part about judges usurping power unconstitutionally.
Both sides are very good at finding sympathetic judges. What’s broken is that we let the parties divide the country however they see fit. Even fair judges can’t make any headway on it because both sides WANT gerrymandering, they want incumbents protected, they want the 95% return rate we have, and they hate actually contested elections.