Stewart McDonald said Scotland's "two dominant centre left-parties" should consider a coalition if there is a "messy" result in two years' time.