it 's peculiar and completely useless location was a compromise between rival cities , australia 's two largest cities : sydney and melbourne , they both wanted to be the capital of the new federation .