As John said, no real difference.
The 40 for tyre wall height represents 40% of the width of the tyre, so a 4mm higher wall, 8mm in overall diameter change...small change on the speedo.

Go for whichever tyre size is cheaper; as sometimes if a tyre size is more popular even though it's bigger it can be cheaper