How to make two motors have really equal speed?

Encodes will have the axles turning at the same speed. They can not help with differences in wheel diameter or with unequal slippage. While slippage may be a relatively small concern indoors, it is a huge problem outdoors.