ML: Classification Model Comparison
In principle you can use your approach.

However, you should not optimize on your test set (step 3). Instead you should select the best t using your validation set.
Then you compare it against KNN, also on the validation set. Finally, the best model should be evaluated on the test set.