Missing pin in replacement chainring, is it important? This is related to Worn out chainring or missing tension
Today the chainring arrived, but it lacks a pin. The pin is 15mm (0.59&quot;) long with a diameter of 4.1mm (0.16&quot;). It is located in such a way, that it points away from the bike, but is covered exactly by the crank arm.

I believe that its function is to prevent the chain to get stuck between the chainring and the crank arm, should the chain jump outwards from the chainring.
I fear that I bought the wrong replacement.
I bought this one Shimano FC-M523 / FC-MT500-3 10-speed Chainring for Chain Guards but maybe should have bought this one Shimano FC-MT500-3 10-speed Chainring (40 tooth variant). The latter was missing a proper picture (has only the 30 tooth variant) and was out of stock in all the shops I searched for.
Now I'm believing that the solution to my problem would be either to buy Shimano Chain Guard for FC-M4050 / FC-M4000 or just ignore the problem. Maybe you know of any other solution.

I had the chain guard in the shopping basket, but when I read about its function on biking forums, they were saying that it's just to keep the trousers clean, so I ditched it. But maybe it does have the function of the pin, but all around the chainring, which sounds like a solution.
Any comments or recommendations on what I should do? I wanted to assemble it today so that I can use it tomorrow, but I guess I'd be OK with waiting a couple of days to have a proper solution.

Update: The wear of the chain drop pin is as follows, which leads me to believe that just ignoring it probably isn't a good solution.



New idea: Would going to the hardware store and buying a screw with nut a reliable option?
You are correct, the chain guard’s purpose is to keep your trousers clean. I guess in this case it also prevents the chain from getting thrown over the chainring or it fills the gap between chainring and crankarm to prevent the chain from getting stuck there.
You only need the pin or chain guard in case the chain gets thrown over the chainring.
If you adjust the front derailleur properly this shouldn’t happen. I’d just use it the way it is. You could try gluing a piece of foam or wood into the narrow part of the gap (if it’s narrow enough to catch a chain) just to prevent the chain from getting stuck there.
Edit: Regarding your idea to use a screw+nut: The problem with a screw+nut will be that the nut and screw head will collide with the chain. It could even be that the wear marks in your picture were caused by the chain in normal operation if the “valleys” of the chainring were worn deep enough.