In practice the order is fairly consistent. Memory comes first, and it is no longer the cheap line item it was a couple of years ago, which makes getting the capacity right at purchase more important, not less. A working day means forty or fifty browser tabs, Outlook, Teams, a few PDFs and at least one Excel workbook, all resident from nine until five. Memory is what keeps that workload responsive through the afternoon.
Storage second, and specifically NVMe. Cold boot, opening a large workbook off a network share, and the first mailbox search of the day are the three moments on which a computer is judged. Cores come a distant third.
The rest of the budget often belongs outside the machine entirely. A second monitor changes more working days than a faster processor, and so do a properly supportive chair and warranty cover that returns a machine to service the same week rather than the same month. If the budget is fixed, that is where the difference belongs.