Pilates or yoga?

22M soon to be 23! Anyone have a specific yoga or pilates to try to help with flexibility and core? I’d appreciate anyone’s advice who’s gone down the yoga or pilates route. I’ll do anything to be as strong as I can in the right ways !