The key indexes had strong weekly gains, but AI stocks faltered amid Meta buzz. Tesla fell on a blowout deliveries report.