Groups with the same order and degree pattern