Understanding the Role of Optimization in Double Descent