Jim Cramer says that amid Thursday's selloff, investors should choose stocks based on the interest rate environment.