Isaac’s answer to a good explanation of the that/so topic.
To answer your basic question, there is no “rule” or common usage that distinguishes “so” from “that.” The distinction is only the one Isaac mentions, about how specific the comparison is.
One last note. “You’re not so clever.” would often be said, “you’re not as clever as you think you are.”