OK, then, you're just wrong.
SORT OF. If two engines have similar torque regardless of displacement, but one makes it at say 10,000 RPM peak and the other makes it at 6,500 RPM peak, well.... first of all, the engine with the higher peak torque is going to have higher horsepower, it's unavoidable, because it can do more work in a given time... and secondly, the fact that it has another 3,500 rpm means that the designer can take advantage of gearing, which could mean (and usually does) that the motor with its torque peak output at a much higher RPM may also have more torque *at the wheel* at all RPMs, because it can take advantage of its RPM range with lower gearing. As a rule of thumb, you want to make your peak torque at a higher engine RPM for that reason - if you are considering only performance.
All other factors being equal, of course. Your example does work simply because the two motors couldn't be different as far as peak torque, peak horsepower, gearing and rev range if you were to ignore the rest of the bike. Gearing is really only part of the equation, but if you are rating MOTORS and how they WORK, that has to be strongly considered. Just because an engine is a specific size or has a specific torque output doesn't tell you much about how it's going to move the bike, which was my point... gearing and rev range are also very important.