On the route from Pittsburgh to Ocean City, you have a number of options that aren't that far off the beaten path.
The aforementioned Bedford Springs.
If access is not an issue: Once you get down into Maryland, you could hit Congressional if driving through Washington or Baltimore CC if you're going through Baltimore. Woodholme (H. Strong) is a major sleeper if headed through Baltimore and is much closer to I 70.
Once you get on the Eastern Shore, Queenstown Harbor has 36 nice holes that is just off US 50, the main route to OC. Hog Neck is also a very nice golf course right on US 50 that received a lot of ink in the past, but has totally fallen off the radar. It was built by the widow of W. Alton "Pete" Jones, one of the founders of Augusta National. Hunters Oak is also about a mile off of Route 50 and is a neo Scottish Ian Scott-Taylor design that's usually in outstanding condition.
If you want to divert a short distance, you may want to try Chester River Y & CC, it's about 30 minutes out of the way. The course is 9 holes 1929 Alex Findlay and 9 holes of 1978 Ed Ault that's actually pretty good. The Findlay holes are pretty much untouched which makes it worth the effort to see. From what I'm hearing, the course is in really good condition at the moment, which given the weather is a really good thing. There's also a good back way to head to the beach from there, which will probably save you a lot of headaches.
Once you get past Easton, I would tell you to continue to the beach. I would have recommended Seaford G & CC if it were still open. Art Hills built a course near Bridgetown, DE but I have not played and know no one who has. The two Nicklaus courses near Rehoboth are nice and Glen Riddle which is on the south side of Ocean City.