I saw you say its an identical part ordered but did you actually confirm that by physically comparing? Sometimes parts get mismarked...

Is the pinion mesh set correctly after you install the motor?
Have you actually watched the gear rotate around to be sure its not defective or bent?
Brand new plastic from china doesn't make me ANY more confident that its actually a good quality part.
I have seen spur gears with run out to the point of being unusable.
Also, any chance the screws you are using to install your motor are too long?
The screw length is important and has caused me an issue or 2 over the years.
Is there any chance at all that you are overlooking some damage to the pinion or motor?
How did you shear the gear in the first place?