A Comparative Study of Machine Learning Models for Prediction: Insights from Tree-Based Models and Deep Neural Networks