Google AI Snippet on a "Near Me" search

An idea popped into my head for directory so I Googled it, just to get an idea of what the SERP was.

Google’s AI snippet has done a great job already. Then below this is the local pack, showing the locations on a map for all of the businesses it describes.

At this point I’m struggling to see how a custom directory can gain any traction. This was just a random example. Maybe there is a better strategy to compete against Google. What do you guys think?