I mean to an extent you do search for the least number of move: you memorize a number of different algorithms and apply the one that will work with the least number of moves in the given situation.
The method used by a majority of cubers is called "CFOP" [1] which can can solve the cube in "average 50-60 moves" according to a quora user [2].