Let $M$ be a model category, consider a very good cylinder object $X \coprod X \to X \times I \overset{\operatorname{pr}}{\to} X$ (here $X \times I$ is just a notation, no object $I$ is implied), that is, the first arrow $\operatorname{in}_1$ is cofibration, and the second is trivial fibration.
Now for $f\colon X \to Y$, the mapping cylinder is defined as the pushout of the natural morphism $\operatorname{in}_1\colon X \to X \times I$ along $f\colon X \to Y$. The mapping cylinder is supplied with canonical arrows $X \to M_f \to Y$, where the first one is $\operatorname{in}_0$ and the second one is induced by:
- composition $\operatorname{pr} \colon X \times I \to X$ and $f$ on the cylinder of $X$
- $\rm{id}$ on $Y$
Let us assume that both $X$ and $Y$ are bifibrant (fibrant and cofibrant). It is easy to show (using only that $X$ is cofibrant) that the retraction $M_f \to Y$ is a weak equivalence. Is it true that the natural morphism $\operatorname{in}_0:X \to M_f$ is a cofibration? If not, what should be required from the model category to make this true?
Dual, I'm interested in the same question about mapping cocylinder / path fibration (of course, the answers will be dual, I'm just mentioning them mainly for web searches)