A "mechanical room" is not automatically Extra Hazard. I still see AHU rooms, pump rooms and generator rooms all set to EH1 or EH2 on drawings, just because of what they're called.
NFPA 13:2019 actually lists mechanical rooms as an example of Ordinary Hazard Group 1 (Annex A.4.3.3). But the annex also makes an important point in A.4.3: these examples represent the normal case, and any unusual fuel load or combustible content has to be considered for the specific space.
So in practice, an AHU room with its units, filters and ductwork usually fits the OH1 norm. A pump room with pumps, motors, valves and piping is usually the same, but once a diesel driven pump is involved, the fuel arrangement and NFPA 20 need a closer look. A diesel generator room is where you really have to assess what is inside: fuel quantity, hot surfaces and electrical equipment, along with NFPA 37 and NFPA 30 where they apply.
It is also worth remembering that, per Section 4.3.1.1, these classifications are for sprinkler design, installation and water supply only.
Over-classify, and you pay for it in water demand and project cost. Under-classify, and the system may not perform when it matters.
Classify the hazard, not the name.
How do you usually classify diesel generator rooms on your projects?
References: NFPA 13:2019 Sections 4.3.1, 4.3.3 to 4.3.5, A.4.3 and A.4.3.3, plus NFPA 20, 37 and 30 where applicable.
These notes are for design discussion. Always apply the code edition adopted for your project and confirm with the AHJ.