The only one who will make the determination about checking through the bag is the checkin agent so you can't plan ahead except to try and get a friendly and knowledgeable one. As far ad booking it, it really is a crapshoot which way to go. But personally I would not book two separate itineraries unless I had a very long stopover to allow for delays and an agent unwilling to check the bags through to the final destination.