Data Science Vs Electrical Engineering for Future Career

I am interested in a future career as an engineer, with a preference for software development. More specifically, I am interested in Electrical Engineering because it lays the foundation for engineering and working with hardware, allowing me to broaden my horizons in the field of engineering. This will allow me to not only understand the software aspects of engineering, but also the hardware and how everything works under the hood. On the other hand, I am interested in Data Science due to the growing fields of AI, Machine Learning, and working with big data. I believe that it will help me to understand and utilize the technology of the future.
Which major do you think would benefit me the most for a future career as an engineer, and why?