Unless you bought it from the manufacturer then its a coin flip, who really knows what the gear is made of.
Sure Nylon, but whats the percentage mixture, is it glass or metal fiber reinforced or some other concoction.
Different materials will have different characteristics and make differing noises.
If you look at it and its exactly the same then you might be good, but who really knows.
The key is to buy the new gear from the manufacturer, or better yet buy all the gears from them so its a given they are all the same material because your motor might be older by years and use different material gear then what they use today.
I'd say the only thing you can really do now is try different greases and just double check if the bearings and fitment of all the gears is the same.
You could try to mask the gear sound with knobbier tires.
You could just put up with the sound, but in general mid drives are loud, I cant tell you how they compare to geared hub motors, but direct drive hub motors are silent.
Another thing you could try is a sinusodial instead of trapezoidal or square waveform controller.