I've replaced broken OEM hoods with cheap third party knock-offs. If the original hood has anti-reflective flocking or textured ridges and the replacement doesn't, the difference can be quite noticeable in certain lighting scenarios. This is particularly the case if there are strong light sources inside the frame or just outside the frame such as when using wider angle lenses to shoot in gyms and outdoor stadiums at night.
This Canon EW-83H that fits the EF 24-105mm f/4 L IS has flocking on the interior surfaces to prevent reflections.
After the third or fourth time gluing and taping my OEM EW-83H back together where it had split at the narrowest point in the "valley" between two of the petals, it finally refused to stay together. The hood split when a camera and lens with the hood in place was dropped from about five feet onto solid concrete and landed hood first! The camera and lens were fine, thanks to the shock absorbing qualities of the hood! But the hood gave its last full measure of devotion to save the lens and camera.
Cheap third party hoods tend to be more reflective.
This Altura Canon EW-83H Replacement Lens Hood for Canon EF 24-105mm f/4L IS USM Lens works just as well as the original OEM hood after one cheap and relatively easy modification. Before that modification, though, it wasn't worth the trouble for me and the lighting scenarios in which I often shoot.
I bought this much cheaper replacement hood which fits very well and is the same size and shape as the original hood. Unfortunately, the finish is a bit too "shiny" and the inner surface of the hood will reflect strong light sources within the frame, or even just outside the frame when the lens is zoomed to a focal length longer than 24mm. This can cause more flare than not using the hood at all in some specific lighting situations.
My answer was to buy a cheap sheet of self-adhesive craft "felt" and cut it to fit the interior of the smooth third party hood.
I went to a craft store and bought a 9" x 12" sheet of "Creatology Peel & Stick Felt" for about $2. Amazon sells similar material in multi sheet sets here and here for less than $10.
I used a piece of light cardstock to make a pattern. You could also use a sheet of paper to make the pattern. Due to the shape of the hood, it's easier to trace the outline of the outside of the hood as you roll the hood across the cardstock, then trim the pattern down until it fits inside the hood. Once the pattern was the correct shape and size, I used it to cut a piece of the self-adhesive felt and applied it to the inside of the hood.
Now the Altura hood works just as well as the original Canon hood did for blocking stray light from the front element of the lens. Let's hope we never need to find out if it will do as well saving a camera and lens from a hard fall!