NYS has excellent community colleges. There’s a clear transfer pathway from our cc’s to the 4-year schools. Some classes/professors are better than others, but that’s true of the 4-year schools too.
Our cc’s offer different levels of courses (honors, regular, remedial, sections of science for STEM majors and sections for non-STEM, etc.) so students can take the courses that are the best fit. If the cc is close to a 4-year college they may share faculty. If a professor is teaching the same course at both schools then the name, description, and content can be the same.
We have a guaranteed transfer program too. Courses accepted at one state school automatically transfer to another, and students who graduate from a cc are guaranteed an acceptance to a 4-year state school (although not necessarily their first choice). I think our system is excellent, but we’re a big state with a lot of resources. I don’t know how other systems work.