I'm not from the Pharmacy or Chemistry background. I have been wondering why certain drug compounds have similar properties but each of them have different Stitch IDs in PubChem?
Bethamethasone and dexamethasone are different chemicals, hence they behave different, therefore they have different identification numbers. The numbers you cite are not STITCH IDs, and as far as my research goes these do not exist. Instead they are CID - PubChem Compound Identification numbers.
As you can see the molecules are diastereomers. The stereo centre of the steroid differs at carbon-16. When you look them up with STICH 4.0 you will see differences with their predicted functional partners. While the first one is nearly identical, the second partner for betamethasone is proopiomelanocortin, while for dexamethasone it is ABCG2.
For more information on STITCH (‘search tool for interactions of chemicals’) I recommend: Michael Kuhn, Christian von Mering, Monica Campillos, Lars Juhl Jensen, and Peer Bork, Nucl. Acids Res. 2008, 36 (Database issue): D684–D688. (Open Access); PMCID: PMC2238848.