My kid was selected into the robotics club this year, and they are using the Spike Prime kit. Seems like a decent set all things considered for younger kids. My child is in 5th grade and first year robotics. Probably wouldn't invest into it if your child is middle-school or older, but from what I've seen of it a very good kit.
5 is appropriate for Lego, but in my experience from volunteering at a teach-kids-to-code club, is almost always to young for programming. If only because they can't read yet, but also their eye for detail (I have seen two 7-year olds spend 10 minutes and still not see the difference between "Step();" and "Step()" when these two lines were right below each other).
Anyone who wants to see that happen for their children can get a robotics club added to their school. Tons of fun, not very expensive. Pretty easy to get corporate sponsorship.