Whitetiger outlines exactly why putting diesel in the def tank is a really bad idea. Doesn't matter what equipment it is, either (trucks, cars, tractors, etc), it can be and usually is, quite expensive
similar if def is added to fuel system. Injectors, supply pump, lift pump, lines, filters, cooler, etc
SImilarly, we used to have a full-service gas station here. When I worked at #1 kubota dealer (from 92 til 2018), I took our GMC 1 ton duramax over there to fill it before delivering a tractor. They topped it off while I was inside buying a Dr Pepper and a pack of reeses. I went back out, hopped in the truck and headed back to the shop. As I started to cut across 3 lanes of 55-70 mph traffic the truck just died. Wouldn't start. I was able to coast it into the lot at work, butt not out of the way (small parking lot). Popped the hood, didn't see anything abnormal, and since it was a shop truck I walked in & told the boss. Boss said "did you put gas in it?"--no they put fuel in it. Hmm...never even thought about it since we've had them fill the truck a thousand times. I walked back out, pulled the fuel cap, yep...full of gas. Charged us for diesel, but put gas in it. Had the truck hauled to the dealer and they had to replace a LOT of stuff, way more than I thought would be required, but it totaled about 12 grand. Gas station paid for it.
So yeah, you have to be really careful with this stuff.