I studied computer science at one of the top colleges. It's true there's a lot of overlap between the two. But they are still very different fields.
You definitely don't need to study computer science just to avoid making common performance issues and in fact just studying computer science doesn't mean that you aren't going to introduce things like N+1 query issues, that's sort of thing comes from experience more than anything.
Likewise, just studying computer science does not mean that you are going to be well suited for software development in the real world.
> If you’re not thinking about what is computable, what is not computable, and what is easily computable as you think about the problems you are trying to solve, you are a professional novice.
Of course I consider all of these things but that didn't come from studying computer science in college lol.