IANAL but in that hypothetical a 'realistic' case would depend on what evidence and witnesses you have.
Your lawyer would probably question the cop on the stand very hard about why they made you stop there and not let you pull over to the shoulder, assuming the cops don't lie and do admit to commanding you to stop there.
Everyone should have a front-and-rear dashcam with night vision and audio.
IANAL but lots of people put unenforceable clauses in contracts just to make laymen think they don't have a shot.
A common one is "this parking lot is not responsible for damage to your car".
To me, small claims is cheap and worth a shot, especially on that first one. Your reasoning is easy to follow.