Choosing the best model, along with appropriate data splitting and hyperparameter tuning
of model will help you to find best model with best parameters for your data in machine learning.
Grid search CV library of sklearn can help you to do exactly that.
The example below demonstrates how to find the best model and its parameters for the digits dataset of sklearn.
In machine learning finding the best conditions is not like that by seeing the data you can predict on your own that this model will be the best, its more like a hit and trial technique. You need to try all the possible algorithms that can be applied and after that also need to find the best combinations of the paramaters of these algorithms in order to find the best conditions for your data. And in order to do that easily GridSearchCV can help you.