Intelligence is ability to achieve goals. If X can achieve a goal X and Y can't - I would say X is more intelligent. As long as the goal G is open world goal both X and Y are tested for sufficiently long time.
That's what lately I am thinking in terms of what is intelligence.