The Gan-Gross-Prasad conjecture and local relative trace formulas