As I have said in another comment, that is RAW not what would happen:
"You can’t even cast it on something behind the wall, because you cannot target something (or someone) with a spell if they are behind total cover. Total cover is created by being behind completely behind an obstacle (like a wall). This counts even if the obstacle is invisible."
Furthermore, because if you chose an invalid target for a spell, you’d still expend the spellslot but there would be no effect. So you actually spend a sixth level spell a lot to achieve nothing."
It’s very much not RAI I'd say and I would likely handle exactly like you described, but the RAW was so wonky that I wanted to make the meme when I found out about it.
The wording simply says "a disintegrate spell". It does not say what it has to be cast on or wether it continues to travel towards the real target afterwards. But the implication clearly is that you have to hit the wall. Thus, RAW, even with specific overriding general, you cannot target the wall because it is invisible (nothing in its spell description states otherwise) and you can’t target space behind the wall, as it is behind cover.
It actually still does, because while disintegrate in 2014 specifically mentions the wall of force, it also specifically mentions how you have to be able to see the target.
As I have said in another comment, that is RAW not what would happen:
"You can’t even cast it on something behind the wall, because you cannot target something (or someone) with a spell if they are behind total cover. Total cover is created by being behind completely behind an obstacle (like a wall). This counts even if the obstacle is invisible."
Furthermore, because if you chose an invalid target for a spell, you’d still expend the spellslot but there would be no effect. So you actually spend a sixth level spell a lot to achieve nothing."
It’s very much not RAI I'd say and I would likely handle exactly like you described, but the RAW was so wonky that I wanted to make the meme when I found out about it.
"Specific overrides general" is RAW though, and the spell description of Wall of Force calls out that exact spell interaction as a way to destroy it.
The wording simply says "a disintegrate spell". It does not say what it has to be cast on or wether it continues to travel towards the real target afterwards. But the implication clearly is that you have to hit the wall. Thus, RAW, even with specific overriding general, you cannot target the wall because it is invisible (nothing in its spell description states otherwise) and you can’t target space behind the wall, as it is behind cover.
Perception check
I guess you're talking about 2024 rules? Because old 5e rules are different and don't have this flaw.
It actually still does, because while disintegrate in 2014 specifically mentions the wall of force, it also specifically mentions how you have to be able to see the target.