Empirical and Experimental Insights into Machine Learning-Based Defect Classification in Semiconductor Wafers