What do you mean by "cant make a straight line"?
If you mean the line you draw is curved, that's because these mice don't have angle snapping.
If you mean the line is running diagonal, like "from top left to bottom right" or "from bottom left to top right", that's because of your grip.
Manage to run your games at 300+fps before you talk about mouse precision.
If you are still struggling to reach 100fps or if you are using some IPS/VA monitor, don' buy mice anymore. Save money and upgrade your whole rig.
If you don't know how to upgrade, just throw away your Ryzen 1st and 2nd gen, get latest Intel i7 i9 with "K", get 4000+MHz memory.