Mechanical engineering vs computer science

I work for an engineering company and we have a saying, engineering can do computer science work but computer science major can’t do engineering work. I’m sorry if I offended any computer science major people here, but almost all engineering require students to take some programming classes, and just like @eyemgh and @r77r77 said, programming language are similar, the most important is the logical thinking and problem solving skills. Engineering would require more work but I think outcome is better. Once you get ME degree you have different options and you can still getting into software programming area if you really like it.