After floors are in fenish with quarter round shoe molding.
Install floors or doors first.
Cover floor for protection where needed.
In most cases given standard flooring heights you will install the cabinets before the floor covering.
Then you should paint all trim and doors first then ceiling and walls.
Generally we install the door frame door first including the trim so they can be painted before the installation of the flooring.
I d vote for doors first it will make installation of the door easier by not having to worry about floor clearances.
Once installed when you re doing the floor you then cut the jamb legs so that they just clear the flooring and any padding glue etc.
The floors go in last.
Most builders leave the floors for last.
You can rent a saw that is special made for cutting door casings to allow tyle to go under.
That may be installed along with it.
I would install the doors first if you have a smooth wood floor and want the no scratch look last until your house warming party when at least one guest will have shoes that ding your floor.
In a sandable floor no cover needed.
Floor covering or finish flooring is the surface that you see and walk on not the subfloor under the underlayment or underlayment between subfloor and finished layer.
Typically cabinets come before flooring.
If you like install the door first just leave the door stop off the floor about 1 inch and the door about 1 1 2 but be prepared to caulk around the jamb if your contractor is careless hanging a solid core door first can and most likely save the floor from some unnecessary damage also if you have hung enough doors then get the flooring and sub flooring if used in a couple small pieces and.
I would install the doors last if you have hand scraped pre dented and pre scratched floors.
This will require your contractors to be super careful.