Both have pro and con.
Ext tubes give high magnification for shorter lens while diopter (raynox) more effective on longer lens.
Diopter adds on the front of lens, so can be remove easily if necessary. Tubes have to remove lens to remove tube.
Tubes no glass involve so do not affect IQ but it causes light loss. Diopter is the opposite.