Apple can sell on its own website and it will have good demand but than it will affect their M3/M2 sales. Also leftover inventory could be easily be sold via stores/BestBuy and all.
Also, quote from article - " But it looks like Apple is going to keep producing the M1 MacBook Air for this deal with Walmart."