Your security theorem based on read only vs. read/write media appears to be a bit outdated ... There was a time long ago when read only media e.g. CDs/DVDs were shipped directly from the creator/source publisher AKA genuine/original media ... Back then when creating a CD/DVD required some sophisticated equipment that were not readily available on personal computers, read only media were considered somewhat an extra layer of security for the sole reason that they were not easy/possible to create on the end user level.
But, these days ... Well ... No more.
CDs/DVDs can be burned/created on any below average and, ironically, preferably older personal computers as the new ones don't come equipped with a CD/DVD burner anymore :-)
What is more important to know, however, is that Writing an ISO image on your personal computer to either read only(if you still have it) CD/DVD or a read/write USB/disk actually involves the same level of risk as the ISO file is processed on your computer prior to writing/burning so whatever malware on that computer has an equal chance infecting your media both ways.
Luckily, Linux viruses/malware are rare and tied by the user privileges system unlike other OS(not to name Windows) where those bad bits of malicious code can run more freely and do whatever they might fancy.
In short ... If you download any official Ubuntu flavor ISO from trusted sources/mirrors and verify your downloaded file checksum/hash and use a clean Ubuntu machine to burn that ISO, I wouldn't really think twice choosing which type of media to write it to as all roads lead to Rome.