After updating my MacBook Pro to macOS Sonoma, I noticed the control center and clock would go missing from the right side of the menu bar after using it with a Studio Display. I was able to get them back by opening Activity Monitor and quitting ControlCenter.