I would say you are getting to the core of the issue: conflicting expectations and interests among the IOC, the hosting country, the sponsors, the individual athletes, the national teams, the spectators both at home and at the venue:
- the IOC, the hosting country, and the sponsors probably want the spectators to think that the games are about celebration of (personal) excellence, so they say forfeiting outright is bad sportsmanship; also, athletes putting up a fight is more exciting and sells more tickets.
- at the same time, watching the medal count ranking is exciting; at least in the case of China, I believe that most people expect the national team *as a whole* to do everything they can to fetch more medals; for some people, the ability of the coach to strategize is part of the show;
- the individual athlete of course wants a gold for themself if possible, but they also kinda have to keep in mind the hopes of the people, which is "more medals *for the country*";
And you may ask "but then why don't we just allow everybody to dope? Doping makes athletes strong/faster and should result in more exciting games if everybody dopes." I would guess it's because any form of doping is probably detrimental to the human body in the long term, which makes it an obvious bad image. Besides, it's possible that doping makes your athlete "expire" sooner, and so maybe it's just not a good deal for national teams to have to do short cycles of discovering talents and training them. I'm not saying this
is the case, I'm just hypothesizing out loud.
And so, given the above factors, we have this weird situation where the IOC says you shouldn't forfeit, but could "turn a blind eye" if you can put up a convincing show of a fight. I'm just hypothesizing how this happens. And I'm not making any conclusion about whether this whole thing is ethical. I'm just laying out the forces at work.
It is still somewhat unlike pro-wrestling because the national teams are really competing against each other. Within each national team, however, it may be a different story.