I have heard that it is good practice to always chose the number of teeth of two gears to be relatively prime. This is because there can be impurities in the metal, and if you have a small part of a tooth that is harder than the rest it will erode the opposing gear (there is always some friction going on). By choosing the number of teeth to be relatively prime, the wear and tear is distributed uniformly on the gears, and thus they last longer.
This is a similar problem to riding a fixed gear bike. When using skidding as a braking technique, specific areas of the tyre will wear faster unless you select a gear (front chainring and rear sprocket) combo with a large amount of skid patches. This is due to the rider always engaging in a skid with their crankset in a specific position - either left or right foot at 90 degrees, and the other at 270 degrees.
That's also what I was taught as a best practice, but it's not always possible. Otherwise, best practice is to index the gears (ie mark a specific tooth on each). That way, when you disassemble the gearbox (it's bound to happen sometime for maintenance), you can make sure it's reassembled so that the same teeth will continue to mesh, preserving the wear pattern. Otherwise, wear is substantially increased.