Is X-Frame-Options or CSP frame-ancestors the right choice?
Use both. CSP frame-ancestors is the modern directive, supports multiple allowed origins, and supersedes X-Frame-Options in browsers that honor it. X-Frame-Options (DENY or SAMEORIGIN) remains a useful fallback for older clients that lack frame-ancestors support. Sending both maximizes coverage.