Checks deep equality with another route.
bool deepEquals(RouteTarget other) => hashCode == other.hashCode;