MDF, or glorified particle board has some advantages and disadvantages.
Price is an advantage.
Painting is an advantage, provided you use a higher viscosity oil based paint. Using a woodworking finish, it will just soak right in and leave a rough surface.
It does not hold screws well, but if this will be your panel within the cope and stick frame, you should be OK.
It is very heavy, compared to ply, this will put a lot more load on your hinges.
Use an organic mask when cutting and sanding, the dust is bad news.
Pure mathematics is, in it's way, the poetry of logical ideas. - Albert Einstein.