Honestly, for the type of operation and the capabilities of both sides, I think people are expecting too much out of Iran and overestimating the importance of this episode. For one having read through the NYTime's account of this, I think its clear. For the US, this was a matter of preserving their military ethos of "No man left behind," while for Iran the benefits of capturing the pilot simply amounted to a potential propaganda win, its not like the Americans were capturing a city or a strategic point. Ie. the Americans in this case were much more determined to see the rescue through than the Iranians were to capture the pilot.
Another thing is the terrain. The terrain being mountainous actually stacked things against Iran in this case despite it being their home turf, since eventhough the pilot was lost he still had his beacon so the US knew where he was the whole time and thus was able to plan and coordinate an exfiltration, while for the Iranians it was basically finding a needle in a haystack.
This whole event also took place in Khuzestan, which has a significant Arab population especially in the countryside and separatist sentiments. Not big enough to threaten the regime, but probably enough to hamper any search efforts.
Also as for the tactical details itself, deception, aerial surveillance, denying area access through fire, the US and Israel put forth their total operational excellence here. Let's not let a few hits on jets drown out the fact that the two countries still have air superiority and any massing of Iranians forces in this area would've gotten lit up in a microsecond. At this point, a ground invasion is basically a question of when, Iran knows this and probably thought the casualties they would've incurred had they gone all out to capture the pilot, especially up against the amount of aerial resources the US had devoted to rescuing him, was not worth it.
In the end, maybe its an embarassment that US spec ops was able to operate so freely in Iranian territory. But a spec ops raid is a different ballpark from an actual ground campaign to seize and hold territory, up against much more determined resistance. So I wouldn't read too much into it and if the Americans think the raid is a sign that invading Iran itself will be easy, then they're welcome to make the Venezuela mistake twice.