I'd suggest taking a look at the actual, historical, day-by-day weather statistics available for many cities on the website timeanddate.com. Look at your prospective weeks for at least the most recent three years (I'd go with five, myself). See what you think. Sight unseen, I'm going to guess your May dates will be warmer (perhaps too much so, depending on your temperature preferences) and drier than your September dates, but I could be wrong. Within recent years I've only been to Budapest once (May 2018) and Romania once (early September 2015). That's why years' worth of actual historical data is so useful. Those of us who visit an area for not much more than a week can have been there at a time when the weather was doing very odd things that are likely not to be repeated. I've linked to Bucharest's weather data for September 2019 on timeanddate.com.
Budapest is a great place. Bucharest, frankly, not so much. I wouldn't tell you not to spend additional time there, because I'm sure it must have some interesting museums. But architecturally, much of it is a mess because Ceausescu tore down so many of the beautiful old buildings. Prettier cities, should you have the time, include Sibiu, Brasov, Cluj-Napoca and Timisoara. The small town of Sighisoara is very picturesque. Unfortunately, transportation within Romania is rather slow (there are few trains, and they are not speedy), so you may find it impractical, with only two days, to see anything other than Bucharest.
While Romania is a fascinating country, with only a few days available, I'd recommend using the time to Budapest (or day-trips from that city). Go back to Romania when you have time to spend at least a couple of weeks in the country.
I have read that the Bulgarian town of Ruse (mentioned by Blue439) is attractive. Unfortunately, I came across that information after I had passed through it on a train heading south to Veliko Tarnovo.