Divergent Paths: Separating Homophilic and Heterophilic Learning for Enhanced Graph-level Representations