Adaptive evolution and segregating load contribute to the genomic landscape of divergence in two tree species connected by episodic gene flow