Will you be relying on the honor system to determine the pitcher's intent?
Officials already determine whether HBP are intentional for purposes of issuing warnings and ejecting players/managers after a HBP occurs.
This is simply adding teeth to that determination.
It's like in the NBA: if a player is repeatedly arguing and scuffling with an opponent, and then "accidentally" commits a flagrant foul on the same opponent, he's probably going to catch a flagrant 2 and get ejected.
Am I understanding you correctly? MLB pitchers hit a batter intentionally a lot just by pitching inside.
I think we all know that is not what we are talking about when we say "intentional HBP." Benches don't get warned for "pitching inside;" they get warned for throwing directly at opposing players. (Keep in mind that batters already have a responsibility to attempt to avoid all pitches, even balls. If the umpire determines that the batter did not make an attempt to avoid a pitch, under current rules that would be a ball, not a HBP; by rule, you cannot be HBP on a strike.)
You are proposing that anytime a batter is hit the pitcher is thrown out and anyone on base scores or am I not understanding you clearly?
Again, it is not difficult today to figure out when players are hit intentionally, especially since it's usually in a hamfisted attempt to enforce the unwritten rules or some other form of beef.
If you are suggesting that this could lead to a future where pitchers have to carefully mask their intentional HBP by throwing dodgeable pitches in situations with no clear motive... then that is working as intended. One cannot be enforcing the unwritten rules if it isn't clear that your target has broken the rules, and if it is clear that they've broken the rules, your intentional HBP will be transparently obvious. Q.E.D.
P.S. Just to make my own position clear: I'm not proposing that all HBP clear the bases. Some are honest errors. I'm saying that the existence of clearly intentional HBP performed as revenge should be scoured from the game. So if there's a player or team that you've been jawing with, then either a) you should choose another time to claim the inside of the plate or b) you should fall on your sword and eat the run(s)/loss/suspension/fine to prove your point.
There is nothing preventing a pitcher from throwing inside strikes or (avoidable) inside balls at any time. If you pitch inside and the umpire determines that a hit batsman could have reasonably dodged it, you have nothing to worry about.