It is not illegal to run from a cop who has not detained you in any way, or has not... (law.stackexchange.com)
That stampede is no different from running from the cops in Grand Theft Auto V. Finding eggs is no different than many side - quests you'll find in the Batman series. (thekoalition.com)