Background: Inorganic resists show promising performances in extreme ultraviolet (EUV) lithography. Yet, there is a need for understanding the exact chemical mechanisms induced by EUV light on these materials. Aim: To gain knowledge on the EUV chemistry of inorganic resists, we investigate hybrid inorganic-organic molecular compounds, metal oxoclusters (MOCs). Their molecular nature allows for the monitoring of specific structural changes by means of spectroscopy and thus for the elucidation of the mechanisms behind pattern formation. Approach: We compare the sensitivity of MOCs based on Zr and Hf, and methacrylate ligands as EUV resists. The chemical and structural changes causing the solubility switch were investigated by ex situ x-ray spectroscopy, infrared spectroscopy, ultraviolet-visible spectroscopy, and grazing incidence x-ray scattering. Results: Higher sensitivity was detected for the Hf-based material, in line with its higher absorptivity. A small fraction of the carboxylate ligands is lost at doses that yield solubility contrast, whereas aggregation of the inorganic clusters was not observed. Conclusions: These results provide evidence that, although the mechanism of solubility switch in these materials starts with decarboxylation reactions, it mainly proceeds through cross linking of the organic shells instead of aggregation of the inorganic clusters.