ospf routes on gateway

Hello,

is there any way to filter routes, which have the same next hop like default gateway route?


Thank you