McDonald's has leaned into discounts to attract budget-conscious diners over the last two years.