Croatia don't create much. Vs Japan they barely create and just have one deflect shot vs Brazil.
Serbia and Switzerland also hadn't create vs Brazil. Only Korea after 0:4.
So, it is hard to tell whether a team is good or bad with 1-2 shots vs Brazil.
Spain didn't create much vs Germany, Japan or Morocco either.
Bad example, has Croatia won 1 game from open play?.
Morocco 0:0, semifinalist 2022'
Canada 4:1
Belgium 0:0, semifinalist 2018'
Japan 1:1, pens
Brazil 1:1, pens, the 1st favorite of a Wc
You could say: Croatia won only 1 match.
But you could also say: Croatia hasn't LOST a single match.
You can't say that for Spain. Spain lost to Japan 1:2, and Morocco 0:0 (pens).
Further, your post in a nutshell describes what is wrong with Barca/Brazil DNA.
They are always looking for the win at the expense of defense and caution.
When it works perfectly, you get the best displays in a history of football.
But when it doesn't work, which is like in 90% of tournaments = you get tactically naive squads who often underachieve based on their talent and who could have achieved way more if they played "smarter".
Barca's/Brazil's way is the way to go in league tournaments or against smaller teams (80% of league opponents).
On the other hand, Barca's way (too attacking) is extremely naive in KO matches, unless if you have a team which is 200% better than everyone and you score a 1st goal.
Maybe it is not a coincidence that Barca and Pep's City are the kings of league championships and they are masters of 5:0 trashing against smaller teams.
Yet, when it comes to KO matches, more cautious football played by Italians in 90s, Real in the last 10 years, Bayern, Chelsea and similar (or France at NT WCs) = is the way to go.
Regarding Barca/Spain in KO matches lately:
-- don't know how to defend
-- only recycling possession, Pep's football gone into the wrong extreme (especially with Lucho, not with Xavi's Barca)
Regarding Pedri, I have wrote earlier that he was raised as a kid watching Xavi's videos.
But some points of Xavi's football went into the extremes and some are neglected.
And imo, Spanish young midfielders in the next 10-20 years will suffer from Xavitis, being raised watching his playing, but taking only some of Xavi's traits and neglecting others which made him good.
Something similar to a possession football played by Barca/Spain lately. It has roots in Pep's Barca, but it went into shitty extremes.
They took only some parts of it and neglected others.