There is a battle tested example of YAML vs programming languages in CloudFormation templates vs CDK.
I don't think anybody serious has any argument in favor of CloudFormation templates.