Both of them take place during the same historical period, that is, the Northern and Southern Dynasties period of Imperial China.
The Empress Dowager Cixi also appears in Nothing Gold Can Stay, although she plays a very bit part only.
Just like Mei Ren Mou Lu, The Imperial Coroner is a mystery drama set in Tang Dynasty with a little romance as well.
Legend of Concubine Zhen Huan is set in the very same period as The Yong Zheng Dynasty, and Yongzheng himself is one of the main characters.