It depends on the manufacturer, some are more forgiving than others. I swear GM absolutely loves to deny warranty claims. When I worked for GM years ago we’d have engines laying on the floor waiting for oil analysis to come back to deny warranties. I personally know GM techs that get their oil changed at their own dealer, using the dealers own oil. Because they don’t want to void their warranty. Because they’ve seen it. They’ve seen GM deny warranty claims on engines (I have too). Now if GM wasn’t going through so many engines? They probably wouldn’t be so strict about it.
And then there’s the customer themselves. You buying cars from that dealer ever year for your family and servicing them there? You can bet the factory rep, service manager, and general manager of that dealer are working lock step to get your claim approved. It’s good business. If you’re not? You will have a fight on your hands...bring service records, bring receipts and it better not contain an oil without a certification and the wrong weight.
But none of that^^^ will happen. Chances are if you take care of your car you could run Honey Nut Cheerios through your engine every 7,500 miles and not need an engine warranty claim.