I guess it depends on the school, mine followed an Abet accredited program, which at times felt dated. The professors often spoke of the differences between CS and programming, not in a way that came across to me as hinting that one was better than the other. I certainly think my school could have focused more on SWE, but then again I loved the broad exposure we got to many CS areas. You had your basic Algorithm, C, C++, Systems Programming in Unix, etc. There were a lot of non programming classes though, they had some coding but not much, like networking class had some coding for sockets. I had to go to the Physics department to get any Python exposure, through a separate certificate program.
I think that was what the poster you are replying to was trying to get at. Computer Science isn't SWE. SWE is a subset of CS. However, as you said, those graduates did try and get SWE jobs with their CS degrees.
At my state college of no notable repute (class of 23), all CS majors took a pretty broad set of courses in upper division that were intros to areas of computer science. I am listing them below for context, but also because it was fun to reminisce. Titles are there, and brief descriptions, don't feel like you have to read them all to understand my perspective about breadth vs SWE focus. It was mostly just fun to remember what seems like an eternity ago.... been a busy couple years lol.
Upper Division courses:
Data Structures and Algorithm Analysis:
Specification, implementation, and manipulation of abstract data types and their structures: balanced trees, priority queues, sets, hash tables, and graphs; recursion; searching and sorting algorithms; asymptotic analysis; NP completeness; fundamental graph algorithms
Computer Software Engineering:
Single client for whole class, broken into groups to make competing projects - almost all ended up as web pages which we took 0 web dev classes
Networking: Network Architecture:
ISO/OSI reference model, TCP/IP protocol stack, layering. Protocol, encapsulation, socket. HTTP, FTP, SMTP, DNS, P2P, TCP, UDP
Databases:
Entity-Relationship (ER) model; relational model; relational database design by ER-to-relational mapping; design of applications using database technology; SQL
Computer Organization:
Simple logic gates through mux and basic cpu design, Harvard vs von Nuewmann architectures, combinational devices, sequential and synchronized circuits, memory organization, CPU architecture and organization, bus structures, input/output, interrupts, DMA, memory hierarchy
Object Oriented Computer Graphics Programming:
Mobile application development; implementation of event-driven systems; advanced object-oriented concepts such as inheritance and polymorphism; implementation of software design patterns; graphical user interface development; fundamentals of 2D graphics systems. We made a 2D game in Java using CodeNameOne. This was pretty fun and the most intense programming class
Computability and Formal Languages:
Automata and formal languages; regular expressions; pumping lemma; language recognition; parsing techniques including recursive-descent; Turing machines; computable and non-computable functions - this was THE fail out class where the prof bragged about how many students failed and how almost no one got an A and a few Bs per semester
Operating Systems:
Processes, threads, concurrency, parallelism on multi-processor and multi-core systems, CPU scheduling, inter- process communication and synchronization, deadlocks
Senior Project :
2 semesters with the same group and a client. Gather requirements, run Agile sprints and must deliver at least Minimum Viable Project with documentation and get client acceptance sign off, or you can't graduate. Mostly web apps, I don't think any of my cohort did a C/C++ or Java project. They usually had some full stack elements. Ours had a web front end, used AWS and MongoDB and the client's own API for gathering data from sensors.
Choose 3 electives, you could go more SWE here with advanced versions of other classes such as Advanced Algorithms, Intelligent Systems, Compiler Construction etc. I went cybersecurity with Encryption, Computer Forensics, and Computer Attacks and Countermeasures.