These two AI stocks have struggled lately, but their solid earnings growth potential suggests they can step on the gas again.