Rare heavy flavor decays at ATLAS and CMS