How Will You Select Suitable Machine Learning Algorithm For A Problem Statement?

How Will You Select Suitable Machine Learning Algorithm For A Problem Statement? If it is a regression problem, then use Linear regression, Decision Trees, Random Forest, KNN, etc. If it is a classification problem, then use Logistic regression, Random forest, XGboost, AdaBoost, SVM, etc. If it is unsupervised learning, then use clustering algorithms like K-means