Amazon and Shopify have been hammered by inflation, but that has created a rare buying opportunity for investors.