1) Teaching quality doesn't correlate much with quality (if anything, the inverse), so an Ivy is likely to have similar or worse teaching than a community college.
2) There is a HUGE difference in a community college bachelor degree and a proper university. Look at the curriculum. Much of what's covered in community college, Ivy students will have done in high school, and a community college will have (quite literally) NO advanced courses, equivalent to what university juniors and seniors might take.
If you want identical, you can compare elite schools to large state universities (University of Texas, University of California, ASU, etc.). At that point, classes are more-or-less identical to elite schools. Major remaining difference is brand stamp and network (which, coming from an elite school, I can say matter a lot).
However, community colleges serve a different purpose, and do not try to accomplish the same thing. They give a leg up into basic professional work. If you work at McD's or the local supermarket, and want a living income as a nurse, IT technician, AV work, or similar, community colleges will do a very good job for not a lot of money and with experience about being practical for people with the kinds of real-world constraints that come with e.g. minimum wage labor.
You will NOT be on a path to a job as a doctor, engineer, or similar. However, a community college education can allow you the basic standard of living to provide that kind of socioeconomic mobility to your kids.