It was not until I was married that I found out mayo even had an expiry date. None of my roommates in the university days used enough to actually work through a jar. It somehow made it fridge to fridge through multiple leases.
https://ask.usda.gov/s/article/Does-mayonnaise-cause-foodbor...
also supermarket mayo is labeled as good for months, but salmonella (the usual culprit) can grow in hours. so the sell-by date wouldn't protect you there