This is probably a question with a simple answer, but the reason is likely to be more technical.
Suppose $Y$ and $X$ are random variables and $f$ is a function of single variable (it is not to mean probability density, neither marginal nor conditional) without any assumptions regarding the type of the function or dependence of the random variables, is there a difference between $f(Y) \vert X = x$ and $f(\{Y \vert X = x\})$?
Basically does it matter whether the conditional information is supplied before or after applying the function?
EDIT:
Due to notational confusion I am adding @Xi'an's better formulation here. Why is the probability distribution of the random variable $f(Y)$ conditional on the event $X=x$ is formally identical to the probability distribution of the random variable $f(Z)$ when $Z$ is distributed from the conditional distribution $p(y|X=x)$?