Text this: Crystal and Magnetic Structure Transitions in Doped Lu- and Fe-Based Perovskite Oxides