Timer/counter overflow and TIFR register
The OCF0B is a compare match flag, which will get set regardless of whether the interrupt is enabled or not. It will get set exactly once per overflow cycle, just like a broken clock will show the correct time twice a day. This is why you are getting the exact same period time with this flag or with the overflow flag.