Cramer says Wednesday's rally is a good indicator of what stocks to buy and which to avoid.