There is a lot you didn't say.....
Most important being.... how far is work from your home?? + do you plan on taking any long drives on weekends? + do you live in a crowded city where you spend a lot of time sitting in traffic? (determines your milage requirements....)
Insurance = I always touch base with my agent and get the rates prior to obtaining a new ride. IE: If I was to by a 2023 _______, what would my insurance be...???
Resale: what does a 3 year old _______ sell for in your area?? This number gives you a good idea of what your trade will be if you decide later you want something else.
Disclaimers: I like to buy cars new and "drive them till the wheels fall off". I own a (6 yr old) Corolla and have had zero issues other than replacing batteries (2) and windshields (1). ... But where I live we often joke that you are just renting the batteries and windshields anyway (so I carry FULL glass coverage). And I have a newer (4 yr old) Ford SUV.... replaced a battery the other day .... no issues otherwise.
Most maintenance is cheap.... TOYOTA CARE changes the synthetic oil for 2 years after purchase and checks the status of a whole bunch of stuff and no further cost to you. Use it!
Change the air filter and wipers at least once a year and the oil when it needs it (after your Toyota Care ends or when another brand of vehicle requires it).
Treat any car nicely and it usually will be good to you in return.