In current browsers an enforced frame-ancestors directive takes priority and X-Frame-Options is ignored. Keeping both is harmless for older clients as long as they agree. When they conflict, the CSP value decides whether other sites can frame the page.
FAQ