The same rows can produce a different exact squared-distance comparison after preprocessing.
Before scaling, the large feature dominates
Raw Q-to-A squared distance is 8101. Raw Q-to-B squared distance is 116, so B is nearer in the raw coordinates.
d2(Q,A)=8101,d2(Q,B)=116
After scaling, compare exact fractions
Scaled Q-to-A squared distance is 349/400. Scaled Q-to-B squared distance is 101/100.
d2(Q,A)=349/400,d2(Q,B)=101/100
The coordinate scale changed the distance comparison
The same rows give B as the raw nearest and A as the scaled nearest. This is exact distance arithmetic, not a promise about a model.
349/400<101/100