Distribution Matching via Generalized Consistency Models