After several months of steadily climbing upwards, the stock market has taken a downturn lately. This recent pullback might provide buying opportunities for stocks that are in a good position to succeed both during and after the coronavirus pandemic. The two companies that I'm keeping an eye on are Amazon (NASDAQ: AMZN) and Chegg (NYSE: CHGG). Both stocks have seen their shares climb significantly higher year to date, leaving few opportunities to buy on the dip in the share price. Let's take a closer look into why Amazon and Chegg are worth scooping up in the event of a full-blown selloff. The stock market is experiencing a sell-off. Image source: Getty images. Amazon is performing well during the pandemic Sales at Amazon have been surging since the start of the pandemic, rising 26% in the first quarter and 40% in the second. While some of this growth has come from customers buying more than usual, new users are also signing up, and some of them are likely to stick around long after the pandemic has run its course. As of its latest update in January, Amazon had 150 million Prime members. These customers not only pay a fee to become a member but also shop more than non-Prime members do. Undoubtedly, people are relying on Amazon more than ever during the pandemic. That reliance and the investments the company is making to add benefits to members likely led to a significant number of new Prime subscriptions throughout the year. In addition to increasing sales of products, Amazon is experiencing growth in its Amazon Web Services (AWS) segment. Importantly, AWS made up 12% of revenue in its most recent quarter while making up 58% of operating profits. As a result of COVID-19, businesses have accelerated their shift to digitization, and AWS is benefiting from that trend. While AWS will face competition from Alphabet's and Microsoft's cloud-platform offerings, businesses that shift to digital aren't likely to reverse that change. Some investors might be put off by Amazon's rapid stock growth. This year, Amazon started out trading at a price-to-earnings (P/E) ratio of 80. After its run-up, it now trades at a P/E ratio around 120. If the market sell-off continues, you might be able to acquire shares of this stock at lower levels. Sales are surging for Amazon. Image source: Getty images. Chegg is deepening its connection with students As the leading online student learning platform, Chegg, too, is seeing financial benefits as a result of COVID-19. When courses are offered online, it increases the value proposition for Chegg's services. A student can use its offerings to help complete coursework and supplement learning materials. In its most recent quarter, revenue increased 63% from the same period a year ago. That boost is likely to continue, as many high schools and colleges decided they will go with remote learning in the fall semester. Indeed, the company said it expected revenue in the range of $605 million to $610 million for the full year, which at the midpoint would be an increase of 48% from 2019. Investors were pleased to see the substantial increase in operating income as a result of the increase in revenue. While revenue increased 63%, operating income tripled, revealing the potential profits the company can achieve as it scales up. Moreover, the company's acquisition of Mathway for $101 million in June increases its capabilities in the high-school level math space. This is vital because it allows Chegg to reach potential college students while they're still in high school. And students who sign up with Chegg in high school and gain experience on the platform are more likely to maintain that membership throughout their college years. Investors have recognized Chegg's excellent prospects and bid the share price up more than 70% this year. Because the company only recently turned profitable, it will not be helpful to measure it based on earnings. However, you can look at its price-to-sales (P/S) ratio. Chegg started the year selling at a P/S ratio of 10, and before the market sell-off, it was trading at a P/S of just over 16. If the market rout continues, you might get an opportunity to buy the stock of this fast-growing consumer goods company at a more reasonable price. 10 stocks we like better than AmazonWhen investing geniuses David and Tom Gardner have a stock tip, it can pay to listen. After all, the newsletter they have run for over a decade, Motley Fool Stock Advisor, has tripled the market.* David and Tom just revealed what they believe are the ten best stocks for investors to buy right now... and Amazon wasn't one of them! That's right -- they think these 10 stocks are even better buys. See the 10 stocks *Stock Advisor returns as of August 1, 2020 John Mackey, CEO of Whole Foods Market, an Amazon subsidiary, is a member of The Motley Fool’s board of directors. Suzanne Frey, an executive at Alphabet, is a member of The Motley Fool’s board of directors. Teresa Kersten, an employee of LinkedIn, a Microsoft subsidiary, is a member of The Motley Fool’s board of directors. Parkev Tatevosian owns shares of Alphabet (C shares). The Motley Fool owns shares of and recommends Alphabet (A shares), Alphabet (C shares), Amazon, and Microsoft and recommends the following options: long January 2022 $1920 calls on Amazon, short January 2022 $1940 calls on Amazon, long January 2021 $85 calls on Microsoft, and short January 2021 $115 calls on Microsoft. The Motley Fool has a disclosure policy.Source