Your hobby programming has selection from all of those areas and it will be different from the program ecosystem at a job. Elevating your selection will give better understanding of the process but not the experience of working in complex environment with others. The selection of ecosystem in a CS school may not be as complex as real world version but "should" be more elaborate than your home brew environment.
All of this to say "it depends". If your homebrew ecosystem is working with a Open source project contributing code through Git(hub/Lab) using the GCC tools chain and VSCode you could be better prepared than the CS students for the real world.
In the end the CS students likely has more experience, while the math student has a better foundation. For a job experience is almost always more important, but depending on the job mathematical experience might actually be the one more important.